This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 117b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-08-11
2163. Labels in constexpr functionsSection: 9.2.6 [dcl.constexpr] Status: CD4 Submitter: Richard Smith Date: 2015-07-24[Adopted at the February, 2016 meeting.]
The requirements for constexpr functions do not, but presumably should, forbid the appearance of a label in the function body (gotos are prohibited).
Proposed resolution (January, 2016):
Add the following as an additional bullet following 9.2.6 [dcl.constexpr] bullet 3.5.2:
The definition of a constexpr function shall satisfy the following requirements:
...
its function-body shall be = delete, = default, or a compound-statement that does not contain
an asm-definition,
a goto statement,
an identifier label (8.2 [stmt.label]),
...
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4