Title
Unqualified name in class member access
Status
open
Section
7.6.1.5 [expr.ref]
Submitter
Vlad Serebrennikov

Created on 2026-04-03.00:00:00 last changed 2 days ago

Messages

Date: 2026-04-22.20:03:37

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]
Date: 2026-04-03.00:00:00

(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.

History
Date User Action Args
2026-04-22 20:03:37adminsetmessages: + msg8547
2026-04-03 00:00:00admincreate