mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-19 07:09:04 +08:00
New test
From-SVN: r28157
This commit is contained in:
parent
a1c6afb002
commit
bb740ce98a
11
gcc/testsuite/g++.old-deja/g++.pt/defarg10.C
Normal file
11
gcc/testsuite/g++.old-deja/g++.pt/defarg10.C
Normal file
@ -0,0 +1,11 @@
|
||||
// Build don't link:
|
||||
// Origin: Ian Nixon <ian@tharas.com>
|
||||
|
||||
struct A {};
|
||||
|
||||
template<class M, class T = A, class C> class Tc {}; // ERROR - no defarg
|
||||
|
||||
int main ()
|
||||
{
|
||||
Tc<int> oops; // ERROR - using template
|
||||
}
|
Loading…
Reference in New Issue
Block a user