This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17483] New: [4.0 regression] ICE at -O3 when passing a reference.
- 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: 14 Sep 2004 20:01:19 -0000
- Subject: [Bug tree-optimization/17483] New: [4.0 regression] ICE at -O3 when passing a reference.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compiling the following valid code snippet (inspired by PR6189)
on mainline with -O3 yields an ICE:
===================================
struct A
{
int i;
int& ref() { return i; }
};
A foo()
{
A a;
a.ref()=0;
return a;
}
void bar()
{
foo();
}
===================================
bug.cc: In function `void bar()':
bug.cc:15: error: address taken, but ADDRESSABLE bit not set
D.1590
bug.cc:15: internal compiler error: verify_stmts failed.
Please submit a full bug report, [etc.]
The regression was introduced 2004-09-13 or 2004-09-14.
--
Summary: [4.0 regression] ICE at -O3 when passing a reference.
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored
Severity: critical
Priority: P2
Component: tree-optimization
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=17483