From: Steve Ellcey Date: Wed, 12 Jul 2006 21:47:58 +0000 (+0000) Subject: re PR c++/28114 (ICE with struct definition in argument of template function) X-Git-Tag: releases/gcc-4.0.4~537 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45ed097188cc7293b9ecf3b486a51c73f83ae92d;p=thirdparty%2Fgcc.git re PR c++/28114 (ICE with struct definition in argument of template function) PR c++/28114 * g++.dg/other/pr28114.C: New. From-SVN: r115398 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 232732f78dd9..088a3af63340 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-07-12 Steve Ellcey + + PR c++/28114 + * g++.dg/other/pr28114.C: New. + 2007-07-11 Lee Millward PR c++/28051 diff --git a/gcc/testsuite/g++.dg/other/pr28114.C b/gcc/testsuite/g++.dg/other/pr28114.C new file mode 100644 index 000000000000..05aeebb80555 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/pr28114.C @@ -0,0 +1,9 @@ + +// Test to make sure we do not ICE on this invalid program. + +template void foo(struct {}*); // { dg-error "" } + +void bar() +{ + foo<0>(0); // { dg-error "" } +}