[Bug middle-end/64067] [4.8/4.9/5 Regression] ICE in expand_expr_real_1, at expr.c:10540, involving compound literal shenanigans

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 28 17:06:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64067

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Nov 28 17:06:23 2014
New Revision: 218169

URL: https://gcc.gnu.org/viewcvs?rev=218169&root=gcc&view=rev
Log:
    Backported from mainline
    2014-11-27  Jakub Jelinek  <jakub@redhat.com>

    PR middle-end/64067
    * expr.c (expand_expr_addr_expr_1) <case COMPOUND_LITERAL_EXPR>:
    Handle it by returning address of COMPOUND_LITERAL_EXPR_DECL
    not only if modifier is EXPAND_INITIALIZER, but whenever
    COMPOUND_LITERAL_EXPR_DECL is non-NULL and TREE_STATIC.

    * gcc.c-torture/compile/pr64067.c: New test.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/compile/pr64067.c
Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/expr.c
    branches/gcc-4_8-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list