URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [defarg8.C] - Rev 305
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Default arguments containing more than one non-nested explicit
// template argument leads to parse error
// This might be ill formed. See DR 325 (one proposed resolution is to make
// it so)
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, // { dg-bogus "" } -
int j = int(foo2<T, U>::baz), // ok
int k = foo2<T, U>::baz) {} // ok?
};