This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51585] New: [4.7 Regression] verify_flow_info failed ICE with virtual inheritance
- From: "reichelt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Dec 2011 20:12:12 +0000
- Subject: [Bug middle-end/51585] New: [4.7 Regression] verify_flow_info failed ICE with virtual inheritance
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51585
Bug #: 51585
Summary: [4.7 Regression] verify_flow_info failed ICE with
virtual inheritance
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: reichelt@gcc.gnu.org
The following valid code snippet triggers an ICE on trunk:
==========================
struct A {};
struct B : virtual A
{
virtual A& foo();
};
struct C : B
{
virtual B& foo();
};
B& C::foo() {}
==========================
bug.cc: In member function 'B& C::_ZTch0_v0_n12_N1C3fooEv()':
bug.cc:10:14: error: fallthru to exit from bb 2
bug.cc:10:14: error: fallthru edge after a control statement in bb 2
bug.cc:10:14: error: wrong outgoing edge flags at end of bb 2
bug.cc:10:14: internal compiler error: verify_flow_info failed
Please submit a full bug report, [etc.]