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

            Bug ID: 22474
           Summary: clang incorrectly accepts constexpr variable which is
                    initialized by non-constexpr variable.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

struct A {};
int main() {
    A a;
    constexpr A b = a;
}

Compiles with clang++ 3.7.0 (trunk 228104). Failed with clang++ 3.5.1 and GCC.

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