This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class
- 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: 28 Oct 2003 10:05:09 -0000
- Subject: [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12807
Summary: [tree-ssa] ICE on invalid variable sized array in class
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
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
The following invalid code snippet
============================================================
template <int> struct A
{
static int n;
char text[n];
};
void foo() { A<0> a; }
============================================================
crashes tree-ssa:
bug.cc: In function `void foo()':
bug.cc:7: internal compiler error: in make_decl_rtl, at varasm.c:760
Please submit a full bug report, [etc.]
This might be related to PR 11267.