re PR c++/28291 (ICE on invalid designated initializer)

PR c++/28291
	* g++.dg/ext/pr28291.C: New test.

From-SVN: r115526
This commit is contained in:
Steve Ellcey 2006-07-17 15:33:14 +00:00 committed by Steve Ellcey
parent 2763a67eff
commit 512380a199
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-07-17 Steve Ellcey <sje@cup.hp.com>
PR c++/28291
* g++.dg/ext/pr28291.C: New test.
2006-07-17 Richard Sandiford <richard@codesourcery.com>
PR middle-end/28403

View File

@ -0,0 +1,13 @@
// Test to make sure we do not ICE on this invalid program.
// { dg-do compile }
// { dg-options "" }
struct A
{
static int i;
int j;
};
A a = { i:0 }; // { dg-error "non-static data member" }