http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8026
Steven Bosscher <steven at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2012-01-29 CC| |steven at gcc dot gnu.org --- Comment #9 from Steven Bosscher <steven at gcc dot gnu.org> 2012-01-29 22:45:05 UTC --- I can reproduce this with GCC 4.1.1" -bash-4.1$ /opt/hp-gcc64/bin/g++ --version g++ (GCC) 4.1.1 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -bash-4.1$ cat ctcore.cpp --------------------------------------------------------------------------- #include <iostream> #include <sstream> using namespace std; int main(int argc, const char** argv, const char** envp) { try { ostringstream msg; throw 0; } catch (int ex) { cout << "Caught exception" << endl; } cout << "End program." << endl; return 0; } -bash-4.1$ /opt/hp-gcc64/bin/g++ -fstack-check ctcore.cpp -bash-4.1$ ./a.out Segmentation fault (core dumped) -bash-4.1$ uname -a HP-UX hpv04 B.11.11 U 9000/785 2034672201 unlimited-user license -bash-4.1$