This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 116a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-12-19


1132. Keyword vs attribute for noreturn

Section: 9.12.11  [dcl.attr.noreturn]     Status: NAD     Submitter: GB     Date: 2010-08-02

N3092 comment GB 32

C has rejected the notion of attributes, and introduced the noreturn facility as a keyword. To continue writing clean, portable code we should replace the [[noreturn]] attribute with a noreturn keyword, following the usual convention that while C obfuscates new keywords with _Capital and adds a macro to map to the comfortable spelling, C++ simply adopts the all-lowercase spelling.

Rationale (August, 2010):

CWG felt that an attribute was a more appropriate representation for this feature.