PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / error2.C
blob68d883caa496ffd9aa22f7f94c075c3b41345d25
1 // { dg-do compile }
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" }
13 template<class T >
14 struct Derived
16   class Nested : public X<T> // { dg-message "required" }
17   {
18   };
19   
20   Nested m; // { dg-message "required" }
21   
22   void Foo ();
25 void Foo (Derived<void> &x)
27   x.Foo (); // { dg-message "required" }