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

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


I ran at a compile error only when invoking clang++ with
-code-completion-at=...
bug.cpp:
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
expression
bug.cpp:4:13: note: undefined constructor 'A' cannot be used in a constant
expression
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to