FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / nest13.C
blob354e7bc35bed510cbfc8aa7ecb7bd05cc92074a9
1 // Build don't link: 
2 // GROUPS passed nested-classes
3 // The bug here is that wer'e getting a message about inner not
4 // being a basetype itself.  I think it's because it's being
5 // compared as the "inner" we knew about when it was forward-declared,
6 // versus the "inner" we know about when it *has* been defined.
8 class temp
10 public:
11         struct inner;
12         inner *trump()
13         {
14                 return (tt);
15         }
16         struct inner
17         {
18                 int ll;
19         }*tt;