gcc/testsuite/g++.old-deja/g++.pt/memtemp90.C
raw| 1 | // { dg-do assemble } |
| 2 | // regression test - |
| 3 | |
| 4 | // by Paul Burchard <[email protected]>, Level Set Systems, Inc. |
| 5 | // Copyright (C) 1999 Free Software Foundation |
| 6 | // related to bug report by Leon Bottou <[email protected]> |
| 7 | |
| 8 | struct A { |
| 9 | template<class T> |
| 10 | struct B { |
| 11 | }; |
| 12 | template<class T> |
| 13 | struct C { |
| 14 | B<T> b; // { dg-bogus "" } B is not a template |
| 15 | // but removing wrapper A gets rid of complaint |
| 16 | // also, replacing B<T> with A::B<T> also gets rid of complaint |
| 17 | }; |
| 18 | }; |
| 19 |