[LLVMbugs] [Bug 8101] New: __has_nothrow_constructor failures
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Sep 7 10:12:29 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8101
Summary: __has_nothrow_constructor failures
Product: clang
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hhinnant at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I believe __has_nothrow_constructor is failing for void types, arrays of
unknown bounds, and classes with virtual destructors. Specifically I believe
the following test should pass:
template <class T, bool Result>
void
test__has_nothrow_constructor()
{
static_assert(__has_nothrow_constructor(T) == Result, "");
}
class VirtualDtor
{
virtual ~VirtualDtor();
};
int main()
{
test__has_nothrow_constructor<void, false>();
test__has_nothrow_constructor<int[], false>();
test__has_nothrow_constructor<VirtualDtor, true>();
}
--
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