re PR c++/27961 (ICE on invalid template declaration)

PR c++/27961
	* g++.dg/template/crash60.C: New test.

From-SVN: r117672
This commit is contained in:
Lee Millward 2006-10-12 20:06:36 +00:00
parent 650fcd0729
commit 34daf61d57

View File

@ -0,0 +1,9 @@
//PR c++/27961
struct A
{
template<int> void foo(X); // { dg-error "declared" }
};
template<int> void f()(0); // { dg-error "initialized" }