http://llvm.org/bugs/show_bug.cgi?id=9918
Summary: exception specification for defaulted constructor
misses default arguments
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
clang ToT fails this test:
struct S {
S(int a = (throw "eep", 0)) noexcept;
};
struct T : S {
T() = default;
};
static_assert(!noexcept(T()), "noexcept(T()) but T() throws");
The implicitly-generated default constructor for T() uses S::S's default
argument, which is not noexcept, but clang doesn't notice that.
--
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