From: Paolo Carlini Date: Fri, 18 Mar 2005 17:19:42 +0000 (+0000) Subject: re PR c++/20463 (ICE on using undefined type) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a1948ed7bfda7c4e3ca6504727b129f000be860;p=gcc.git re PR c++/20463 (ICE on using undefined type) 2005-03-18 Paolo Carlini PR c++/20463 * g++.dg/template/crash35.C: New test. From-SVN: r96690 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4a0f85fc344..861304d12d0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-03-18 Paolo Carlini + + PR c++/20463 + * g++.dg/template/crash35.C: New test. + 2005-03-17 Paolo Carlini PR c++/19966 diff --git a/gcc/testsuite/g++.dg/template/crash35.C b/gcc/testsuite/g++.dg/template/crash35.C new file mode 100644 index 00000000000..dd8aa2f0906 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash35.C @@ -0,0 +1,9 @@ +// PR c++/20463 +// { dg-do compile } + +template struct C; // { dg-error "declaration" } + +template void C::f() // { dg-error "invalid|template" } +{ + const foo bar; // { dg-error "name a type" } +}