https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77947
Bug ID: 77947 Summary: ice with -g and -O2 in strip_naming_typedef Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 39788 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39788&action=edit gzipped C++ source code The attached code, when compiled by gcc trunk dated 20161012, and compiler flags -g -O2, does this: $ ../results/bin/gcc -c -g -O2 bug309.cc libs/serialization/src/basic_oarchive.cpp: In member function ‘virtual bool boost::archive::detail::basic_oarchive_impl::find(const boost::serialization::extended_type_info&) const::bosarg::tracking(unsigned int) const’: libs/serialization/src/basic_oarchive.cpp:464:1: internal compiler error: Segmentation fault 0xc29117 crash_signal ../../trunk/gcc/toplev.c:337 0x9008a8 strip_naming_typedef ../../trunk/gcc/dwarf2out.c:5095 0x9008a8 get_context_die ../../trunk/gcc/dwarf2out.c:23429 0x9005c7 force_decl_die ../../trunk/gcc/dwarf2out.c:23448