2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / nest13.C
blobd9a8b6e7e768b4d2c069b6b30037eb82223ea51b
1 // { dg-do assemble  }
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;