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

2024-12-19


2945. Redundant constraints on matching function template declarations

Section: 6.6  [basic.link]     Status: open     Submitter: Vlad Serebrennikov     Date: 2024-10-27

(From submission #630.)

Subclause 6.6 [basic.link] paragraph 11 specifies:

For any two declarations of an entity E:

However, two function template declarations can only ever declare the same entity if they correspond (6.6 [basic.link] paragraph 8), which requires they have the same template-heads (6.4.1 [basic.scope.scope] paragraph 4). The "equivalent type" requirement covers differences in noexcept, which is (intentionally) not covered by "corresponding signatures".

Possible resolution:

Change in 6.6 [basic.link] paragraph 11 as follows:

For any two declarations of an entity E: