This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/16318] New: [3.5 regression] ICE with pointer-to-member-functions
- 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: 1 Jul 2004 16:38:19 -0000
- Subject: [Bug tree-optimization/16318] New: [3.5 regression] ICE with pointer-to-member-functions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Richard, here's some fall-out from your tree-sra rewrite
http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg01253.html
The following code snippet crashes mainline when compiled with optimization:
============================================
struct A
{
void (A::*p)();
void foo() const { (A().*p)(); }
};
inline A makeA() { return A(); }
void bar()
{
makeA().foo();
}
============================================
The error message is:
bug.cc: In function `void bar()':
bug.cc:10: internal compiler error: in generate_element_copy, at tree-sra.c:1461
Please submit a full bug report, [etc.]
--
Summary: [3.5 regression] ICE with pointer-to-member-functions
Product: gcc
Version: 3.5.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,rth at gcc dot gnu dot
org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16318