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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs