http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46364
Summary: basic_string.h:541:32: internal compiler error: Segmentation fault Product: gcc Version: 4.5.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: kir...@shutemov.name Created attachment 22322 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22322 preprocessed source $ cat test.cc #include <string> void a() throw (int); void b(std::string const &); void c(std::string *e) { b(""); try { a(); } catch (...) { *e = ""; } } void d() { c(0); } $ g++ -c -O3 test.cc In file included from /usr/lib/gcc/i586-alt-linux/4.5.1/../../../../include/c++/4.5.1/string:53:0, from test.cc:1: /usr/lib/gcc/i586-alt-linux/4.5.1/../../../../include/c++/4.5.1/bits/basic_string.h: In function ‘void c(std::string*)’: /usr/lib/gcc/i586-alt-linux/4.5.1/../../../../include/c++/4.5.1/bits/basic_string.h:541:32: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.altlinux.org> for instructions. Preprocessed source stored into /tmp/.private/kas/cc9BCz1h.out file, please attach this to your bugreport.