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

2026-05-08


3180. Unqualified name in class member access

Section: 7.6.1.5  [expr.ref]     Status: open     Submitter: Vlad Serebrennikov     Date: 2026-04-03

(From submission #880.)

The note in 7.6.1.5 [expr.ref] paragraph 1 seems incorrect, because an "unqualified name" never follows a dot, by definition (6.5.3 [basic.lookup.unqual] paragraph 4.

Possible resolution:

Change in 7.6.1.5 [expr.ref] paragraph 1 as follows:

A postfix expression followed by a dot . or an arrow ->, optionally followed by the keyword template, and then followed by an id-expression or a splice-expression, is a postfix expression. [Note 1: If the keyword template is used and followed by an id-expression identifier, the unqualified name identifier is considered to refer to a template (13.3 [temp.names]). If a simple-template-id results and is followed by a ::, the id-expression is a qualified-id.end note]

CWG 2026-05-08

Reconsider this issue after paper P4176, which changes the presentation of postfix expressions, has been adopted.