[llvm-bugs] [Bug 23135] [C++11/14] Body of constexpr function templates instantiated too eagerly in unevaluated operands

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 21 12:39:35 PDT 2016


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #5 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Reopening: new thinking on core issue 1581 is that we would instantiate if a
constexpr function is used in a context that might be evaluated (note that this
is a broader set of contexts than "potentially-evaluated", and also includes
contexts where the evaluation would always be constant-evaluation, such as
evaluating a braced-init-list to check for narrowing, but does not include
evaluating an operand of 'decltype' in general).

-- 
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/20161021/b2eea661/attachment.html>


More information about the llvm-bugs mailing list