Title
Redundant specification of non-type typename-specifier
Status
nad
Section
13.8 [temp.res]
Submitter
Hubert Tong

Created on 2014-07-17.00:00:00 last changed 37 months ago

Messages

Date: 2021-02-15.00:00:00

Rationale (February, 2021):

The specification, now found in 13.8.1 [temp.res.general], particularly in bullet 8.5, is clearer in this regard.

Date: 2022-11-20.07:54:16

Paragraphs 3-4 of 13.8 [temp.res] read, in part,

When a qualified-id is intended to refer to a type that is not a member of the current instantiation (13.8.3.2 [temp.dep.type]) and its nested-name-specifier refers to a dependent type, it shall be prefixed by the keyword typename, forming a typename-specifier. If the qualified-id in a typename-specifier does not denote a type, the program is ill-formed.

If a specialization of a template is instantiated for a set of template-arguments such that the qualified-id prefixed by typename does not denote a type, the specialization is ill-formed.

The former requirement is intended to apply to the definition and the latter to an instantiation of a template, but that intent is not completely clear, leading to the perception that they are redundant.

History
Date User Action Args
2021-02-17 00:00:00adminsetmessages: + msg6514
2021-02-17 00:00:00adminsetstatus: open -> nad
2014-07-17 00:00:00admincreate