Title
Missing restrictions for reflection on using-declarators
Status
open
Section
7.6.2.10 [expr.reflect]
Submitter
Daniel Katz

Created on 2026-11-23.00:00:00 last changed yesterday

Messages

Date: 2026-12-03.22:52:07

Suggested resolution:

Change in 7.6.2.10 [expr.reflect] paragraph 7 as follows:

A reflect-expression R of the form ^^id-expression represents an entity determined as follows:
  • If lookup of the terminal name of the id-expression finds a declaration that replaced a using-declarator U during single search (6.5.1 [basic.lookup.general]), U shall be reflection-transparent (9.10 [namespace.udecl]).
  • If the id-expression denotes ... then R is ill-formed.
  • ...
Date: 2026-11-23.00:00:00

(From submission #1039.)

The restrictions in 7.6.2.10 [expr.reflect] bullet 5.1 apply only to the form "^^ reflection-name", but fail to apply to more general id-expressions (such as names of conversion operators).

History
Date User Action Args
2026-12-03 22:52:07adminsetmessages: + msg8731
2026-11-23 00:00:00admincreate