[llvm-bugs] [Bug 30712] clang ignores constexpr for static members of objects with reference template type
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 17 09:07:39 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30712
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Clang is correct. In order for a call to a constexpr function to be evaluated
at compile time, it must be possible to (symbolically) evaluate all of its
arguments. In the failing case, it is not possible to evaluate the value of the
implicit 'this' parameter. In the successful case, it evaluates symbolically to
the address of the caller's parameter.
--
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/20161017/aaf063eb/attachment.html>
More information about the llvm-bugs
mailing list