[LLVMbugs] [Bug 7526] New: Destructors just can't hold on to their exception specifications

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 29 17:13:52 PDT 2010


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

           Summary: Destructors just can't hold on to their exception
                    specifications
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rjmccall at apple.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Sema::CheckDestructorDeclarator drops exception specifications at the very end
of the function.

The following test case should have all sorts of funky exception-checking code
in it under -fexceptions, but doesn't because the exception specifications are
dropped.  Undoubtedly there's some way to test this in Sema as well.

extern void foo();
struct allocator {
  ~allocator() throw();
};
allocator::~allocator() throw() { foo(); }

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