3 // Copyright (C) 2003 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 14 Aug 2003 <nathan@codesourcery.com>
6 // instantiated from did not indicate the nested class
8 template<class T> struct X
10 T m; // { dg-error "" "" }
16 class Nested : public X<T>
17 { // { dg-error "instantiated" "" }
20 Nested m; // { dg-error "instantiated" "" }
25 void Foo (Derived<void> &x)
27 x.Foo (); // { dg-error "instantiated" "" }