Title
Attributes in alias-declarations
Status
c++11
Section
9.1 [dcl.pre]
Submitter
Daveed Vandevoorde

Created on 2010-03-04.00:00:00 last changed 130 months ago

Messages

Date: 2011-03-15.00:00:00

[Voted into the WP at the March, 2011 meeting as part of paper N3262.]

Date: 2011-02-15.00:00:00

Proposed resolution (February, 2011) [SUPERSEDED]:

  1. Change the grammar in 9.1 [dcl.pre] paragraph 1 as follows:

    • alias-declaration:
        using identifier attribute-specifier-seqopt = type-id ;
  2. Change 9.2.4 [dcl.typedef] paragraph 2 as follows:

  3. A typedef-name can also be introduced by an alias-declaration. The identifier following the using keyword becomes a typedef-name and the optional attribute-specifier-seq following the identifier appertains to that typedef-name. It has the same semantics...
Date: 2010-03-04.00:00:00

The grammar for an alias-declaration does not have a place for an attribute-specifier, although a typedef declaration does. Since an alias-declaration is essentially a different syntactic form of a typedef declaration (9.2.4 [dcl.typedef] paragraph 2), this could be surprising.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetmessages: + msg3324
2011-04-10 00:00:00adminsetstatus: review -> fdis
2011-02-28 00:00:00adminsetmessages: + msg3241
2011-02-28 00:00:00adminsetstatus: drafting -> review
2010-08-23 00:00:00adminsetstatus: open -> drafting
2010-03-04 00:00:00admincreate