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

2024-11-11


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

Section: 9.2.9.5  [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 9.2.9.5 [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 9.2.9.5 [dcl.type.elab] as follows: