]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c/54363 (ICE when compiling malformed struct initializers)
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Apr 2013 17:56:12 +0000 (19:56 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Apr 2013 17:56:12 +0000 (19:56 +0200)
commit3fd17365de85bbfd005338e5b6f854e9ab79045f
treed5b8453b5483258f7148fa1891c4a9add9101981
parent0fc74719c7d5b3224d4f2d83a059f4aebd4ed363
backport: re PR c/54363 (ICE when compiling malformed struct initializers)

Backported from mainline
2012-08-24  Jakub Jelinek  <jakub@redhat.com>

PR c/54363
* gimplify.c (optimize_compound_literals_in_ctor): Only recurse
if init is a CONSTRUCTOR.

* gcc.dg/pr54363.c: New test.

From-SVN: r197443
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr54363.c [new file with mode: 0644]