[llvm-bugs] [Bug 24597] New: constexpr: Read of object whose lifetime has ended

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 27 05:13:43 PDT 2015


            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: unassignedclangbugs at nondot.org
          Reporter: r.hl at gmx.net
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150827/f73d498d/attachment.html>

More information about the llvm-bugs mailing list