------- Comment #2 from pluto at agmk dot net  2005-12-21 18:02 -------
if I change the myexception definition to:
struct myexception : public std::exception {};

then testcase will crashe at all optimization levels on i386/amd64.

Program received signal SIGSEGV, Segmentation fault.
0xb7ef7a06 in ?? ()
(gdb) bt
#0  0xb7ef7a06 in ?? ()
#1  0xb7eb42eb in __cxa_throw () from /usr/lib/libstdc++.so.6
#2  0xb7dde6ed in _Unwind_DeleteException () from /lib/libgcc_s.so.1
#3  0xb7eb34e6 in __cxa_end_catch () from /usr/lib/libstdc++.so.6
#4  0x08048777 in main () at main.cpp:25

this backtrace comes from gcc-4.1/i386.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25515

Reply via email to