https://llvm.org/bugs/show_bug.cgi?id=24597

            Bug ID: 24597
           Summary: constexpr: Read of object whose lifetime has ended
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangb...@nondot.org
          Reporter: r...@gmx.net
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Fails with trunk 245216. However, it shouldn't; §5.20 goes

— an lvalue-to-rvalue conversion (4.1) unless it is applied to
(2.7.4) — a non-volatile glvalue of literal type that refers to a non-volatile
object whose lifetime began within the evaluation of e;

So AFAICS a rejection is incorrect.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to