This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 110b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2023-01-15


1247. Restriction on alias name appearing in type-id

Section: 9.2.4  [dcl.typedef]     Status: CD4     Submitter: James Widman     Date: 2011-02-26

[Moved to DR at the May, 2015 meeting.]

With the resolution of issue 1044, there is no need to say that the name of the alias cannot appear in the type-id of the declaration.

Proposed resolution (April, 2015):

Change 9.2.4 [dcl.typedef] paragraph 2 as follows:

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 as if it were introduced by the typedef specifier. In particular, it does not define a new type and it shall not appear in the type-id. [Example:...