mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-20 09:35:05 +08:00
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:
parent
650fcd0729
commit
34daf61d57
9
gcc/testsuite/g++.dg/template/crash60.C
Normal file
9
gcc/testsuite/g++.dg/template/crash60.C
Normal 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" }
|
||||
|
Loading…
Reference in New Issue
Block a user