https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108468
Bug ID: 108468 Summary: ICE in most_specialized_partial_spec/builtin_guide_p in C++20 mode Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ed at catmur dot uk Target Milestone: --- Since 11.1, the following ices in -std=c++20 and later: template<int> struct C { template<class, class> static constexpr int x = 1; }; template<int I> template<class... A> int C<I>::x<void(A...), void(A...)> = 2; int y = C<0>::x<void(int), void()>; 0x23ae54e internal_error(char const*, ...) ???:0 0xc5b614 deduction_guide_p(tree_node const*) ???:0 0xc5be2c builtin_guide_p(tree_node const*) ???:0 0xc82bdf most_specialized_partial_spec(tree_node*, int) ???:0 0xc83a76 instantiate_template(tree_node*, tree_node*, int) ???:0 0xc8c0d8 finish_template_variable(tree_node*, int) ???:0 0xcce05f finish_id_expression(tree_node*, tree_node*, tree_node*, cp_id_kind*, bool, bool, bool*, bool, bool, bool, bool, char const**, unsigned int) ???:0