FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / defarg8.C
blobb267409974bb7afd46060cefa327d4d86623826d
1 // Build don't link:
3 // Default arguments containing more than one non-nested explicit
4 // template argument leads to parse error
6 template <class T> class foo1;
7 template <class T, class U> class foo2;
9 struct bar {
10   template <class T, class U>
11   bar(int i = foo1<T>::baz, // gets bogus error - XFAIL *-*-*
12       int j = int(foo2<T, U>::baz), // ok
13       int k = foo2<T, U>::baz) {} // gets bogus error - before > - XFAIL *-*-*