[llvm-bugs] [Bug 34253] Constant expression from permitted result of a constant expression is not constexpr

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 21 09:02:06 PDT 2017


hstong at ca.ibm.com changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |hstong at ca.ibm.com
         Resolution|---                         |INVALID

--- Comment #1 from hstong at ca.ibm.com ---
someVar[0] is not a core constant expression.

It applies lvalue-to-rvalue conversion to a glvalue referring to a subobject,
_of_ but not _being_ a complete non-volatile const object with a preceding

See WG 21 document N 4687 subclause 8.20 [expr.const] bullet 2.7.

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/20170821/35463002/attachment.html>

More information about the llvm-bugs mailing list