diff options
author | Steve Ellcey <sje@cup.hp.com> | 2006-07-17 15:33:14 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2006-07-17 15:33:14 +0000 |
commit | 512380a199d362f4d6f3f0e9e03ebc280952cd97 (patch) | |
tree | d828647e4cf26e73a8d93521820f15389cb0c286 | |
parent | 2763a67eff553784e396cb651ef6929a6e14b0a9 (diff) | |
download | gcc-512380a199d362f4d6f3f0e9e03ebc280952cd97.zip gcc-512380a199d362f4d6f3f0e9e03ebc280952cd97.tar.gz gcc-512380a199d362f4d6f3f0e9e03ebc280952cd97.tar.bz2 |
re PR c++/28291 (ICE on invalid designated initializer)
PR c++/28291
* g++.dg/ext/pr28291.C: New test.
From-SVN: r115526
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/pr28291.C | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a9398a3..9638bcf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/g++.dg/ext/pr28291.C b/gcc/testsuite/g++.dg/ext/pr28291.C new file mode 100644 index 0000000..1b3b9f4 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/pr28291.C @@ -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" } |