From: Lee Millward Date: Thu, 12 Oct 2006 20:06:36 +0000 (+0000) Subject: re PR c++/27961 (ICE on invalid template declaration) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34daf61d5715135637af4b4749a4dde33f03143d;p=gcc.git re PR c++/27961 (ICE on invalid template declaration) PR c++/27961 * g++.dg/template/crash60.C: New test. From-SVN: r117672 --- diff --git a/gcc/testsuite/g++.dg/template/crash60.C b/gcc/testsuite/g++.dg/template/crash60.C new file mode 100644 index 00000000000..9e1d88b2432 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash60.C @@ -0,0 +1,9 @@ +//PR c++/27961 + +struct A +{ + template void foo(X); // { dg-error "declared" } +}; + +template void f()(0); // { dg-error "initialized" } +