mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-22 22:01:20 +08:00
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:
parent
d1bd0ded61
commit
a6b602cafd
@ -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.
|
||||
|
||||
|
16
gcc/testsuite/g++.dg/parse/template8.C
Normal file
16
gcc/testsuite/g++.dg/parse/template8.C
Normal 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 "" }
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user