* g++.old-deja/g++.pt/defarg8.C: New test.

From-SVN: r23912
This commit is contained in:
Alexandre Oliva 1998-11-26 20:34:47 +00:00 committed by Alexandre Oliva
parent be537f34b0
commit c885faf89a
2 changed files with 16 additions and 0 deletions

View File

@ -1,5 +1,7 @@
1998-11-27 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.pt/defarg8.C: New test.
* g++.old-deja/g++.pt/instantiate6.C: New test.
* g++.old-deja/g++.pt/static6.C: New test.

View File

@ -0,0 +1,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 *-*-*
};