https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64067
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Nov 27 11:04:16 2014 New Revision: 218121 URL: https://gcc.gnu.org/viewcvs?rev=218121&root=gcc&view=rev Log: 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: trunk/gcc/testsuite/gcc.c-torture/compile/pr64067.c Modified: trunk/gcc/ChangeLog trunk/gcc/expr.c trunk/gcc/testsuite/ChangeLog