gcc/testsuite/g++.old-deja/g++.pt/memtemp84.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Copyright (C) 1999 Free Software Foundation |
| 4 | |
| 5 | // by Alexandre Oliva <[email protected]> |
| 6 | // simplified from bug report by redleaf <[email protected]> |
| 7 | |
| 8 | struct B { |
| 9 | template <class> void bar(); |
| 10 | } b; |
| 11 | |
| 12 | template <class T> void foo() { |
| 13 | b.bar<T>(); // { dg-bogus "" } bar undeclared |
| 14 | b.template bar<T>(); // { dg-bogus "" } ditto |
| 15 | b.B::bar<T>(); |
| 16 | } |
| 17 | |
| 18 | template void foo<void>(); // { dg-bogus "" } |