https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106760
Bug ID: 106760 Summary: ICE: tree check: expected function_decl, have template_decl in get_fndecl_argument_location, at cp/call.cc:7801 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- struct S { template<class> int f(); int g() const { return f<void>(); } }; int main() { S().g(); } https://godbolt.org/z/vcdK4h1Kj