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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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

Reply via email to