[Bug c/59351] ICE on empty compound literal with -pedantic

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 3 13:52:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59351

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Dec  3 13:52:12 2013
New Revision: 205632

URL: http://gcc.gnu.org/viewcvs?rev=205632&root=gcc&view=rev
Log:
    Backport from mainline
    2013-12-03  Marek Polacek  <polacek@redhat.com>

    PR c/59351
    * c-decl.c (build_compound_literal): Allow compound literals with
    empty initial value.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/gcc.dg/pr59351.c
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/c-decl.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list