OSDN Git Service

PR testsuite/25241
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / crash67.C
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 <nathan@codesourcery.com>
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 };