[Bug c++/13772] New: [tree-ssa] ICE in get_expr_operands
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jan 20 16:20:00 GMT 2004
The following example causes an ICE when compiled with "g++ -O -c":
======================================================
struct A
{
int i[2];
int& operator[] (int j) { return i[j]; }
int foo() { return (*this)[1]; }
};
void bar()
{
A a[1];
a[0].foo();
}
======================================================
The error message is:
ssa-bug.cc: In function `void bar()':
ssa-bug.cc:11: internal compiler error: in get_expr_operands, at
tree-ssa-operands.c:918
Please submit a full bug report, [etc.]
This is closely related to PR 13681, but here we don't have an
out-of-bounds access.
--
Summary: [tree-ssa] ICE in get_expr_operands
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: bangerth at dealii dot org,gcc-bugs at gcc dot gnu dot
org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13772
More information about the Gcc-bugs
mailing list