[Bug c++/11267] New: [tree-ssa] ICE with variable-sized arrays
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jun 20 17:23:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11267
Summary: [tree-ssa] ICE with variable-sized arrays
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P1
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
CC: dnovillo@gcc.gnu.org,gcc-bugs@gcc.gnu.org
The following code crashes tree-ssa (20030620), just compile with "g++ -c":
-------------------------------------------------------------------------------
class A
{
A( int );
};
A::A ( int i )
{
int ar[1][i];
ar[0][0] = 0;
}
-------------------------------------------------------------------------------
The error message is:
bug.cc: In constructor `A::A(int)':
bug.cc:10: internal compiler error: in make_decl_rtl, at varasm.c:801
Please submit a full bug report, [etc.]
Probably the same problem shows up with the following C-code snippet
(just compile with "gcc -c"):
-------------------------------------------------------------------------------
void foo(int i)
{
int f[1][i];
static void bar() { f[0]; }
}
-------------------------------------------------------------------------------
Here, the error message is:
bug.c: In function `foo':
bug.c:3: internal compiler error: in make_decl_rtl, at varasm.c:801
Please submit a full bug report, [etc.]
Since this is a regression on mainline, I set the priority to "P1".
More information about the Gcc-bugs
mailing list