[LLVMbugs] [Bug 21045] New: Built-in __is_constructible interferes with definition of struct __is_constructible {};

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 23 14:36:24 PDT 2014


            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: unassignedclangbugs at nondot.org
          Reporter: stephan.bergmann.secondary at googlemail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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
on Mac OS X in C++11 mode, which happens to define a struct template named

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/20140923/17c325f1/attachment.html>

More information about the llvm-bugs mailing list