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

2024-04-18


836. [[noreturn]] applied to function types

Section: 9.12.10  [dcl.attr.noreturn]     Status: NAD     Submitter: Joseph Myers     Date: 7 March, 2009

The [[noreturn]] attribute, as specified in 9.12.10 [dcl.attr.noreturn], applies to function declarations and is not integrated with the type system. This is incompatible with existing practice (as in gcc) and should be reconsidered.

Rationale (July, 2009):

The CWG reaffirmed the previous decisions not to have attributes apply to types and did not believe that the benefits were sufficient for this case to make an exception to the general rule.