From 623a837ef4ca59cf2e1ce11fe6a120cda1713835 Mon Sep 17 00:00:00 2001 From: No Author Date: Mon, 21 Feb 2005 21:11:51 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'gcc-3_4-branch'. From-SVN: r95349 --- gcc/testsuite/g++.dg/template/crash34.C | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 gcc/testsuite/g++.dg/template/crash34.C diff --git a/gcc/testsuite/g++.dg/template/crash34.C b/gcc/testsuite/g++.dg/template/crash34.C new file mode 100644 index 000000000000..9cca62f05391 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash34.C @@ -0,0 +1,12 @@ +// { dg-do compile } + +// PR c++/20028 + +// We used to crash when referencing TYPE_SIZE_UNIT of the messed-up +// type used for x, because it was not initialized. + +class Foo; + +template class Foo { }; // { dg-error "not a template type" } + +Foo x; // { dg-error "not a template" } -- 2.47.2