1 // { dg-do assemble } 2 // 3 // Copyright (C) 2000 Free Software Foundation, Inc. 4 // Contributed by Nathan Sidwell 10 Aug 2000 <nathan@codesourcery.com> 5 6 // bug 372 We ICE'd on the out-of-class definition of a nested class of a 7 // class template. 8 9 struct Bar 10 { 11 }; 12 13 template <class T> 14 struct Foo 15 { 16 struct Baz; 17 struct Biz; 18 struct Boz 19 : Bar 20 { 21 }; 22 }; 23 24 template <class T> 25 struct Foo<T>::Biz 26 { 27 }; 28 29 template <class T> 30 struct Foo<T>::Baz 31 : Bar 32 { 33 }; 34