re PR c++/10558 (Segfault on illegal use of template without template args)

PR c++/10558
	* g++.dg/parse/template8.C: New test.

From-SVN: r69226
This commit is contained in:
Mark Mitchell 2003-07-11 08:41:44 +00:00 committed by Mark Mitchell
parent d1bd0ded61
commit a6b602cafd
2 changed files with 19 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2003-07-11 Mark Mitchell <mark@codesourcery.com>
PR c++/10558
* g++.dg/parse/template8.C: New test.
PR c++/8327
* g++.dg/template/scope1.C: New test.

View File

@ -0,0 +1,16 @@
namespace N
{
template <typename> struct A
{
template <typename T> A(A<T>);
};
}
void foo(N::A<int>);
void bar()
{
foo(N::A); // { dg-error "" }
}