gcc/testsuite/g++.old-deja/g++.pt/friend47.C
raw| 1 | // { dg-do assemble } |
| 2 | |
| 3 | // Copyright (C) 2000 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 7 Jan 2001 <[email protected]> |
| 5 | |
| 6 | // Bug 1033. We ICE'd when trying to make a non template class a templated |
| 7 | // friend. |
| 8 | |
| 9 | class A {}; |
| 10 | class B { |
| 11 | template<class T> friend class A; // { dg-error "" } not a template |
| 12 | }; |
| 13 | |
| 14 |