Title
alias-declaration as a class member
Status
c++11
Section
11.4 [class.mem]
Submitter
Alisdair Meredith

Created on 2009-06-23.00:00:00 last changed 96 months ago

Messages

Date: 2010-08-23.00:00:00

[Voted into WP at August, 2010 meeting.]

Date: 2010-02-15.00:00:00

Proposed resolution (February, 2010):

In the grammar in 11.4 [class.mem], add the indicated production to the definition of member-declaration:

    member-declaration:
      decl-specifier-seqopt attribute-specifieropt member-declarator-listopt ;
      function-definition ;opt
      ::opt nested-name-specifier templateopt unqualified-id ;
      using-declaration
      static_assert-declaration
      template-declaration
      alias-declaration
Date: 2010-08-23.00:00:00
N3092 comment FIĀ 10

The grammar for member-declaration in 11.4 [class.mem] does not include a production for the alias-declaration form of typedef declarations, meaning that something like

    struct S {
      using UINT = unsigned int;
    };

is ill-formed. This seems like an oversight.

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetstatus: wp -> fdis
2010-11-29 00:00:00adminsetstatus: dr -> wp
2010-08-23 00:00:00adminsetmessages: + msg2916
2010-08-23 00:00:00adminsetstatus: ready -> dr
2010-03-29 00:00:00adminsetstatus: review -> ready
2010-02-16 00:00:00adminsetmessages: + msg2546
2010-02-16 00:00:00adminsetstatus: drafting -> review
2009-06-23 00:00:00admincreate