[LLVMbugs] [Bug 12306] New: exception handling failure for several tests it the gcc c++ torture test suite under linux

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 19 10:22:15 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=12306

             Bug #: 12306
           Summary: exception handling failure for several tests it the
                    gcc c++ torture test suite under linux
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: robertm at google.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


There are several exception handling tests in the gcc 4.6 torture test suite
which fail with trunk clang++:

init-temp1.C
the problem seems to be that when throwing an exception
during the contruction of an object on the stack, llvm does not seem
to call the destructor. (It is a little more complicated than that)
(c.f.
http://build.shr-project.org/sources/svn/gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch/gcc/testsuite/g++.dg/eh/
)

spec9.C
terminate called after throwing an instance of 'int*'
changing the signature from "throw (IntArray)" => "throw (int*)"
fixes the problem
(c.f.
http://build.shr-project.org/sources/svn/gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch/gcc/testsuite/g++.dg/eh/
)

dtor1.C
base class destructor does not seem to be called at the right time
Note:  This test is already in the clang suite but fails -- at least on linux
x86 
clang-tests/trunk/gcc-4_2-testsuite/src/g++.dg/eh/dtor1.C

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list