[LLVMbugs] [Bug 19178] New: __is_constructible(A) returns true if A is an abstract type.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Mar 18 12:27:19 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19178

            Bug ID: 19178
           Summary: __is_constructible(A) returns true if A is an abstract
                    type.
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mclow.lists at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

struct Abstract { virtual void f() = 0; };
int main () { static_assert ( __is_constructible(Abstract), "" ); }

Should fail to compile, since you cannot construct an object of type Abstract.
Note that replacing "__is_constructible(Abstract)" with
"std::is_constructible<Abstract>::value does fail.

-- 
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/20140318/0daba565/attachment.html>


More information about the llvm-bugs mailing list