[LLVMbugs] [Bug 14381] New: Compile error only when running code completer

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 19 08:29:44 PST 2012


             Bug #: 14381
           Summary: Compile error only when running code completer
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: mustrumr97 at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I ran at a compile error only when invoking clang++ with
struct A{
    constexpr A(){}
constexpr A x;

When completing at bug.cpp:5:1 there is an error:
bug.cpp:4:13: error: constexpr variable 'x' must be initialized by a constant
bug.cpp:4:13: note: undefined constructor 'A' cannot be used in a constant
bug.cpp:2:15: note: declared here

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