diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/nest13.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/nest13.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest13.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest13.C new file mode 100644 index 000000000..d9a8b6e7e --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.brendan/nest13.C @@ -0,0 +1,20 @@ +// { 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; +}; |