This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20073] New: [4.0 regression] ICE initializing const array
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Feb 2005 10:49:41 -0000
- Subject: [Bug c++/20073] New: [4.0 regression] ICE initializing const array
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following valid code snippet causes an ICE when compiled with mainline:
==============================
template<int> struct A
{
A();
};
const A<0> x[] = { A<0>() };
==============================
bug.cc:7: internal compiler error: in set_mem_attributes_minus_bitpos, at
emit-rtl.c:1539
Please submit a full bug report, [etc.]
This is a relitively new regression (the compiler from 2005-02-16works fine).
--
Summary: [4.0 regression] ICE initializing const array
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20073