[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#228099: g++-3.3: exception in constructor of a class to be thrown is not caught



Package: g++-3.3
Version: 1:3.3.2-4
Severity: normal

Hi there,

Running the following code compiled with 'g++-3.3 testex.cc'
results in a SIGABRT. I see no reason why this should happen.
With g++ 3.2 it works, i.e. the exception 1 in A() is caught
by the try-block.


# 1 "testex.cc"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "testex.cc"
class A
{
    public:
        A() {throw(1);}
};

int main(int argc, char *argv)
{
    try
    {
        throw A();
    }
    catch(...)
    {
    }
}


Regards,

Alexander Motzkau

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux laptop.motzkau 2.6.0 #1 Wed Jan 14 22:27:46 CET 2004 i686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (ignored: LC_ALL set to de_DE@euro)

Versions of packages g++-3.3 depends on:
ii  gcc-3.3                     1:3.3.2-4    The GNU C compiler
ii  gcc-3.3-base                1:3.3.2-4    The GNU Compiler Collection (base 
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libstdc++5-3.3-dev          1:3.3.2-4    The GNU Standard C++ Library v3 (d

-- no debconf information




Reply to: