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


1707. template in elaborated-type-specifier without nested-name-specifier

Section:  [dcl.type.elab]     Status: C++14     Submitter: Richard Smith     Date: 2013-06-27

[Moved to DR at the February, 2014 meeting.]

The grammar for elaborated-type-specifier in [dcl.type.elab] reads, in part,

This allows use of the template keyword without a nested-name-specifier, e.g., struct template S<int>. This is inconsistent with other uses of the template keyword. It might be better to split the production in two and only allow the keyword following a nested-name-specifier, i.e.,

Proposed resolution (January, 2014):

Change the grammar in [dcl.type.elab] as follows: