[LLVMbugs] [Bug 16627] New: Behavior of __has_nothrow_constructor differs from GCC
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jul 15 02:25:56 PDT 2013
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: unassignedclangbugs at nondot.org
Reporter: antoshkka at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130715/752518e2/attachment.html>
More information about the llvm-bugs
mailing list