This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See for the official list.


924. alias-declaration as a class member

Section: 11.4  [class.mem]     Status: C++11     Submitter: Alisdair Meredith     Date: 23 June, 2009

N3092 comment FI 10

[Voted into WP at August, 2010 meeting.]

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.

Proposed resolution (February, 2010):

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