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

            Bug ID: 21045
           Summary: Built-in __is_constructible interferes with definition
                    of struct __is_constructible {};
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

> $ clang++ --version
> clang version 3.6.0 (trunk 218328)
> Target: x86_64-apple-darwin13.4.0
> Thread model: posix
>
> $ cat test.cc
> struct __is_constructible {};
>
> $ clang++ -c test.cc
> test.cc:1:1: error: declaration of anonymous struct must be a definition
> struct __is_constructible {};
> ^
> test.cc:1:1: warning: declaration does not declare anything 
> [-Wmissing-declarations]
> struct __is_constructible {};
> ^
> 1 warning and 1 error generated.

(This breaks inclusion of
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits
on Mac OS X in C++11 mode, which happens to define a struct template named
__is_constructible.)

-- 
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