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