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

2023-01-15


1258. “Instantiation context” differs from dependent lookup rules

Section: 13.8.4.1  [temp.point]     Status: CD5     Submitter: Nikolay Ivchenkov     Date: 2011-03-10

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.

Additional note (February, 2022):

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