http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59737
Bug ID: 59737
Summary: ice from optimize_inline_calls
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Created attachment 31783
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31783&action=edit
gzipped C++ source code
I just compiled the attached code with gcc trunk 20140108
on a x86_64 box and it said
[dcb@zippy4 foundBugs]$ ../results/bin/g++ -c -O2 bug128.cc
ptclib/vcard.cxx: In member function ‘virtual void
PvCard::URIValue::ReadFrom(std::istream&)’:
ptclib/vcard.cxx:730:1: error: missing callgraph edge for call stmt:
__builtin_unreachable ();
_ZN6PvCard8URIValue8ReadFromERSi/1461 (virtual void
PvCard::URIValue::ReadFrom(std::istream&)) @0x7f129da023d8
Type: function definition analyzed
Visibility: externally_visible public virtual
Address is taken.
References:
Referring: _ZTVN6PvCard8URIValueE/2137 (addr)
Availability: available
First run: 0
Function flags: body
Called by: _ZN6PvCard11InlineValue8ReadFromERSi/1466 (1.00 per call)
Calls: _ZN14PAbstractArrayD2Ev/637 (1.00 per call) (can throw external)
_ZN14PAbstractArrayD2Ev/637 (1.00 per call) (can throw external)
_ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate/2689 (1.00 per
call) (can throw external) _ZN7PStringC2EPKc/2641 (1.00 per call) (can throw
external)
Has 2 outgoing edges for indirect calls.
ptclib/vcard.cxx:730:1: internal compiler error: verify_cgraph_node failed
0x89e2a0 verify_cgraph_node(cgraph_node*)
../../src/trunk/gcc/cgraph.c:2914
0xcd6fb9 optimize_inline_calls(tree_node*)
../../src/trunk/gcc/tree-inline.c:4606
0x11d3929 early_inliner
../../src/trunk/gcc/ipa-inline.c:2272
0x11d3929 execute
../../src/trunk/gcc/ipa-inline.c:2335
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
Flag -O2 required.