Title
“Instantiation context” differs from dependent lookup rules
Status
cd5
Section
13.8.4.1 [temp.point]
Submitter
Nikolay Ivchenkov

Created on 2011-03-10.00:00:00 last changed 33 months ago

Messages

Date: 2022-02-15.00:00:00

Additional note (February, 2022):

The quoted paragraph was removed by P1103R3 (Merging Modules), approved 2019-02.

Date: 2022-02-18.07:47:23

C++11 expanded the lookup rules for dependent function calls (13.8.4.2 [temp.dep.candidate] bullet 1.2) to include functions with internal linkage; previously only functions with external linkage were considered. However, 13.8.4.1 [temp.point] paragraph 6 still says,

The instantiation context of an expression that depends on the template arguments is the set of declarations with external linkage declared prior to the point of instantiation of the template specialization in the same translation unit.

Presumably this wording was overlooked and should be harmonized with the new specification.

History
Date User Action Args
2022-02-18 07:47:23adminsetmessages: + msg6702
2022-02-18 07:47:23adminsetstatus: drafting -> cd5
2011-03-10 00:00:00admincreate