http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48703
Summary: segfault in canonicalize_for_substitution Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassig...@gcc.gnu.org ReportedBy: m...@gcc.gnu.org Created attachment 24062 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24062 testcase The patch for PR48207 broke compiling any moderately complex C++ program with -g -flto. We can't use the C++ specific langhook for mangling when we've already cleared out language specific stuff in free_lang_data. $ cc1plus -g -flto bug.ii /matz/gcc/svn/real-trunk/dev/x86_64-unknown-linux-gnu/libstdc++-v3/include/istream: In instantiation of ‘std::basic_istream<_CharT, _Traits>::sentry::operator bool() const [with _CharT = wchar_t, _Traits = std::char_traits<wchar_t>]’: EtherAppCli.cc:221:1: instantiated from here /matz/gcc/svn/real-trunk/dev/x86_64-unknown-linux-gnu/libstdc++-v3/include/istream:686:7: internal compiler error: Segmentation fault