diff options
author | lmillward <lmillward@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-12 20:06:36 +0000 |
---|---|---|
committer | lmillward <lmillward@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-12 20:06:36 +0000 |
commit | d753691c82be94ad1b6b8194ae4a907c8808fb27 (patch) | |
tree | 7c796301606ccc7919b810456af969295d59e0de | |
parent | 779e287a0e590b5e39ef50a42a9cc3728140c4ca (diff) | |
download | gcc-d753691c82be94ad1b6b8194ae4a907c8808fb27.tar.gz |
PR c++/27961
* g++.dg/template/crash60.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117672 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/g++.dg/template/crash60.C | 9 |
1 files changed, 9 insertions, 0 deletions
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<int> void foo(X); // { dg-error "declared" } +}; + +template<int> void f()(0); // { dg-error "initialized" } + |