2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / defarg8.C
blob239672dec433e60f8dc71a215e66a88798a05144
1 // { dg-do assemble  }
3 // Default arguments containing more than one non-nested explicit
4 // template argument leads to parse error
6 // This might be ill formed. See DR 325 (which would like to make it
7 // so)
9 template <class T> class foo1;
10 template <class T, class U> class foo2; // { dg-error "" }
12 struct bar {
13   template <class T, class U>
14   bar(int i = foo1<T>::baz, // { dg-bogus "" }  - 
15       int j = int(foo2<T, U>::baz), // ok
16       int k = foo2<T, U>::baz) {} // { dg-error "" }