This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23171] [4.1/4.2 Regression] ICE on pointer initialization with C99 initializer
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Dec 2005 08:56:14 -0000
- Subject: [Bug c++/23171] [4.1/4.2 Regression] ICE on pointer initialization with C99 initializer
- References: <bug-23171-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from mmitchel at gcc dot gnu dot org 2005-12-24 08:56 -------
Subject: Bug 23171
Author: mmitchel
Date: Sat Dec 24 08:56:10 2005
New Revision: 109036
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=109036
Log:
PR c++/23171
* varasm.c (initializer_constant_valid_p): An ADDR_EXPR of a
CONSTRUCTOR is invalid.
PR c++/23171
* g++.dg/opt/init1.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/opt/init1.C
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/varasm.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23171