Open xmh0511 opened 1 month ago
a
is covered by http://eel.is/c++draft/dcl.meaning.general#3.4
B
is covered by http://eel.is/c++draft/class.pre#1
[basic.lookup.general] p1 should still say
Unless otherwise specified, the name lookup rules apply uniformly to all names ...
Full name of submitter (unless configured in github; will be published with the issue): Jim X
[basic.lookup.general] p1 says:
[basic.pre] p4 says:
Consider this example:
The
a
in the declarator-id is an identifier, which is thereof a name, however, there would be nothing to be found if the lookup name applied toa
. The same is true for the class-nameB
.Suggested Resolution
Name lookup does not apply to the name in declarator-id, class-name and so on that are being declared in a declaration.