http://llvm.org/bugs/show_bug.cgi?id=16627
Bug ID: 16627
Summary: Behavior of __has_nothrow_constructor differs from GCC
Product: clang
Version: 3.2
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Following code works well on GCC-4.6 but fails with clang 3.0 and clang 3.2:
#include <cassert>
struct nothrow_def {
nothrow_def(int i = 0) noexcept {}
};
int main() {
assert(__has_nothrow_constructor(nothrow_def));
}
Without `int i = 0` it work OK.
--
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