[Bug target/18649] terminate called after throwing - IOT/Abort trap (core dumped)
--- Additional Comments From cmchugh at callixa dot com 2005-04-08 20:18 --- I downloaded and built 3.4.3 on AIX 5.2, and this bug does still exist; I tried the following program (scarfed from 13391) and it crashes every time. Is there any resolution/fix ? bluetrance:13391$ more a2.cpp void mycall() { throw 0; } bluetrance:13391$ more a1.cpp extern void mycall(); int main() { try { mycall(); } catch (int i) { return i; } return 1; } bluetrance:13391$ g++ -fPIC -DPIC -shared -o liba2.a a2.cpp bluetrance:13391$ g++ -fPIC -DPIC -o a1 a1.cpp -L. -la2 bluetrance:13391$ a1 terminate called after throwing an instance of 'i' IOT/Abort trap (core dumped) bluetrance:build$ g++ --v Reading specs from /usr/local/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.3/specs Configured with: /export/xtegra3/gcc-3.4.3/gcc-3.4.3/configure --enable-languages=c,c++ --enable-threads=aix --disable-nls --prefix=/export/xtegra3/gcc-3.4.3/installdir Thread model: aix gcc version 3.4.3 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18649
[Bug target/18649] terminate called after throwing - IOT/Abort trap (core dumped)
--- Additional Comments From cmchugh at callixa dot com 2005-04-13 00:41 --- If I compile and link the example in my last comment (shown below) with -pthread, it will always run. If I don't it will always core dump. This is with g++ 3.4.3 on AIX 5.2. Does anyone know if the same program compiled with g++ 3.3.3 will behave the same way on AIX 5.2 ? (i.e. run okay when compiled and linked with -pthread but abort otherwise ?) bluetrance:13391$ cat a2.cpp void mycall() { throw 0; } bluetrance:13391$ cat a1.cpp extern void mycall(); int main() { try { mycall(); } catch (int i) { return i; } return 1; } bluetrance:13391$ g++ -fPIC -DPIC -shared -pthread -o liba2.a a2.cpp bluetrance:13391$ g++ -fPIC -DPIC -o a1 a1.cpp -pthread -L. -la2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18649
[Bug c++/12879] [3.4 Regression] double error message when using incomplete types in a struct
--- Additional Comments From cmchugh at callixa dot com 2005-04-13 00:56 --- Broken in 3.4.3 on AIX 5.2; $ cat x.cpp struct Exception { static void raise () throw (Exception){ throw Exception(); } }; $ g++ x.cpp x.cpp:2: error: invalid use of undefined type `struct Exception' x.cpp:1: error: forward declaration of `struct Exception' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12879