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


1914. Duplicate standard attributes

Section: 9.12  [dcl.attr]     Status: extension     Submitter: Aaron Ballman     Date: 2014-04-15

[This suggestion was adopted as paper P2156R1 at the June, 2021 plenary.]

The standard attributes noreturn, carries_dependency, and deprecated all specify that they cannot appear more than once in an attribute-list, but there is no such prohibition if they appear in separate attribute-specifiers within a single attribute-specifier-seq. Since intuitively these cases are equivalent, they should be treated the same, accepting duplicates in both or neither.

Rationale (June, 2014):

EWG should determine the desired outcome for this question.