re PR c++/28114 (ICE with struct definition in argument of template function)

PR c++/28114
	* g++.dg/other/pr28114.C: New.

From-SVN: r115025
This commit is contained in:
Steve Ellcey 2006-06-26 21:25:23 +00:00 committed by Steve Ellcey
parent f340b6fc9b
commit adf2ac06f4
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-06-26 Steve Ellcey <sje@cup.hp.com>
PR c++/28114
* g++.dg/other/pr28114.C: New.
2006-06-25 Eric Botcazou <ebotcazou@adacore.com>
* gcc.c-torture/compile/20060625-1.c: New test.

View File

@ -0,0 +1,9 @@
// Test to make sure we do not ICE on this invalid program.
template<int> void foo(struct {}*); // { dg-error "" }
void bar()
{
foo<0>(0); // { dg-error "" }
}