http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59255
--- Comment #2 from mark at jarv dot in ---
This is my first time trying to debug GCC, so please forgive me if this is
obvious or unhelpful.
I traced this in GDB and it seems that the segfault is because the
FOR_EACH_EDGE loop at value-prof.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59255
--- Comment #3 from mark at jarv dot in ---
I notice that lookup_stmt_eh_lp(icall_stmt) at value-prof.c:1272 returns -1.
Elsewhere in the code (tree-eh.c:2208), I see "lp_nr <= 0" as a guard against
further EH processing.
At
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59255
--- Comment #4 from Mark Jarvin ---
I think the other relevant text from the C++11 standard is available here:
http://stackoverflow.com/q/13041715/228142
"An implicitly declared special member function (Clause 12) shall have an
exception-specific
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59255
--- Comment #5 from Mark Jarvin ---
Hmm... seems like it's already fixed in the trunk:
http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=201859
It doesn't seem to have been ported to 4.8.
http://gcc.gnu.org/viewcvs/gcc/branches/gcc-4_8-branch