[Bug c++/23172] [4.1/4.2 Regression] ICE on integer initialization, GNU extension
mmitchel at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Dec 27 17:18:00 GMT 2005
------- Comment #11 from mmitchel at gcc dot gnu dot org 2005-12-27 17:18 -------
Subject: Bug 23172
Author: mmitchel
Date: Tue Dec 27 17:18:05 2005
New Revision: 109081
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109081
Log:
PR c++/23171, c++/23172, c++/25417.
* c-decl.c (compound_literal_number): Remove.
(build_compound_literal): Use set_compound_literal_name.
* c-common.c (compound_literal_number): New variable.
(set_compound_literal_name): New function.
* c-common.h (set_compound_literal_name): Declare.
2005-12-26 Mark Mitchell <mark@codesourcery.com>
PR c++/23171, c++/23172, c++/25417.
* typeck.c (build_unary_op): Create temporary variables for
compound literals whose addresses are taken.
* init.c (expand_aggr_init_1): Use COMPOUND_LITERAL_P.
* decl.c (reshape_init_vector): Likewise.
(reshape_init): Give it external linkage.
(check_initializer): Use COMPOUND_LITERAL_P.
(initialize_artificial_var): Allow the initializer to be a
CONSTRUCTOR.
* call.c (make_temporary_var_for_ref_to_temp): Use
create_temporary_var.
* cp-tree.h (COMPOUND_LITERAL_P): New macro.
(rehape_init): Declare.
* typeck2.c (digest_init): Use COMPOUND_LITERAL_P.
* semantics.c (finish_compound_literal): Use reshape_init.
2005-12-26 Mark Mitchell <mark@codesourcery.com>
PR c++/23172
* g++.dg/ext/complit4.C: New test.
PR c++/25417
* g++.dg/ext/complit5.C: Likewise.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/ext/complit4.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/ext/complit5.C
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/c-common.c
branches/gcc-4_1-branch/gcc/c-common.h
branches/gcc-4_1-branch/gcc/c-decl.c
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/call.c
branches/gcc-4_1-branch/gcc/cp/cp-tree.h
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/cp/init.c
branches/gcc-4_1-branch/gcc/cp/semantics.c
branches/gcc-4_1-branch/gcc/cp/typeck.c
branches/gcc-4_1-branch/gcc/cp/typeck2.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23172
More information about the Gcc-bugs
mailing list