[llvm-bugs] [Bug 24612] clang accepts "constexpr void f() { throw; }"

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 28 15:35:08 PDT 2015


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Oops, it appears that clang does not diagnose /any/ "never produces a constant
expression" issues in constexpr functions with 'void' return type and no
'return' statements.

Fixed in r246347.

(Clang wasn't actually /wrong/ here, per se, as this issue is "no diagnostic
required", but still...)

-- 
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/20150828/e9cbcf27/attachment-0001.html>


More information about the llvm-bugs mailing list