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 "as type 'void'" "void" }
11 // { dg-error "incomplete type" "incomplate" { target *-*-* } 10 }
12 // { dg-error "invalid" "invalid" { target *-*-* } 10 }
18 class Nested : public X<T> // { dg-message "instantiated" "" }
22 Nested m; // { dg-message "instantiated" "" }
27 void Foo (Derived<void> &x)
29 x.Foo (); // { dg-message "instantiated" "" }