https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119529
Bug ID: 119529
Summary: Template-id does not match any template declaration
(for template friend function)
Product: gcc
Version: 14.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jesse at mind dot net
Target Milestone: ---
The attached program fails to compile, producing:
unfriendly-template.cpp:13:13: error: template-id ‘f<>’ for ‘void f<>(int)’
does not match any template declaration
13 | friend void f<>(int);
| ^~~
unfriendly-template.cpp:12:7: note: candidate is: ‘void<unnamed
struct>::f(int)’
12 | void f(int) {}
| ^