gcc/testsuite/g++.old-deja/g++.pt/crash67.C
raw| 1 | // { dg-do assemble } |
| 2 | // { dg-options "" } |
| 3 | // |
| 4 | // Copyright (C) 2001, 2003 Free Software Foundation, Inc. |
| 5 | // Contributed by Nathan Sidwell 6 May 2001 <[email protected]> |
| 6 | |
| 7 | // Bug 2526. We ICE'd after diagnosing dependent name confusion in |
| 8 | // friendliness when not being pedantic. |
| 9 | |
| 10 | template<typename T> |
| 11 | struct B |
| 12 | { |
| 13 | typedef B<T> Mother; |
| 14 | }; |
| 15 | |
| 16 | template<typename T> |
| 17 | struct D : B<T> |
| 18 | { |
| 19 | friend class Mother; |
| 20 | }; |