[Bug c++/27098] throw cause terminate() instead of catch
mlazar at kma dot zcu dot cz
gcc-bugzilla@gcc.gnu.org
Mon Apr 10 04:15:00 GMT 2006
------- Comment #4 from mlazar at kma dot zcu dot cz 2006-04-10 04:15 -------
I observed that if the c source is compiled with "-foptimize-sibling-calls -O"
options (on i686 in gcc 4.0.3), the exception is catched.
So in this case, the terminate() function call:
gcc -c helper.c
g++ helper.o main.cc -o main
and this case, the exception is catched:
gcc -c helper.c -O -foptimize-sibling-calls
g++ helper.o main.cc -o main
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27098
More information about the Gcc-bugs
mailing list