Title
Duplicate standard attributes
Status
extension
Section
9.12 [dcl.attr]
Submitter
Aaron Ballman

Created on 2014-04-15.00:00:00 last changed 119 months ago

Messages

Date: 2014-06-15.00:00:00

Rationale (June, 2014):

EWG should determine the desired outcome for this question.

Date: 2021-06-15.00:00:00

[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.

History
Date User Action Args
2014-07-07 00:00:00adminsetmessages: + msg5122
2014-07-07 00:00:00adminsetstatus: open -> extension
2014-04-15 00:00:00admincreate