https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61207
Ray Donnelly <mingw.android at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mingw.android at gmail dot com --- Comment #8 from Ray Donnelly <mingw.android at gmail dot com> --- Regarding https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61207#c5 It's not a question of being able to get the source code, it's about reducing the code to the minimum amount that exhibits the bug. In the old days (maybe still now?) gccbug would be used, now-a-days, creduce works well. Here is the testcase from Boost: // reduced test case: namespace std { class basic_string typedef string; class basic_string { public: basic_string(char *, unsigned); }; } class A { public: A(char); size(); char *begin(); *m_begin; *m_end; }; enum output_format {}; namespace std { class runtime_error { public: runtime_error(string); }; } struct B : std::runtime_error { B(A m) : runtime_error(std::string(m.begin(), m.size())) {} }; fn1(int, output_format) { B(0); B(0); } // elapsed time: 30405 seconds Compiling with MSYS2's mingw64/mingw-w64-x86_64-gcc 4.9.2-4 package with: /mingw64/bin/g++ -Os testcase.ii Gives: internal compiler error: in expand_expr_addr_expr_1, at expr.c:7669