[LLVMbugs] [Bug 16377] statement expressions do not evaluate as constexpr
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jun 19 20:03:30 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16377
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Done in r184396.
We don't perform any syntactic checks on the contents of a statement-expression
in a constexpr function, so in C++11 you can use variable declarations, if,
for, switch, and so on. But we still use the C++11 evaluation rules, so no
variable mutation is allowed.
--
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/20130620/8bd0166e/attachment.html>
More information about the llvm-bugs
mailing list