aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/defarg8.C
blob: 6bb1125259c73d93bae55aad6814e4804aa9448f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Build don't link:

// Default arguments containing more than one non-nested explicit
// template argument leads to parse error

template <class T> class foo1;
template <class T, class U> class foo2;

struct bar {
  template <class T, class U>
  bar(int i = foo1<T>::baz, // ok
      int j = int(foo2<T, U>::baz), // ok
      int k = foo2<T, U>::baz) {} // gets bogus error - before > - XFAIL *-*-*
};