------- 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

Reply via email to