view gcc/testsuite/g++.old-deja/g++.brendan/nest13.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

// { dg-do assemble  }
// GROUPS passed nested-classes
// The bug here is that wer'e getting a message about inner not
// being a basetype itself.  I think it's because it's being
// compared as the "inner" we knew about when it was forward-declared,
// versus the "inner" we know about when it *has* been defined.

class temp
{
public:
        struct inner;
        inner *trump()
        {
                return (tt);
        }
        struct inner
        {
                int ll;
        }*tt;
};