https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107484
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-checking |accepts-invalid Priority|P2 |P1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Also crashes with a release checking build: > ./cc1plus -quiet t.ii t.ii:5:52: internal compiler error: Segmentation fault 5 | friend void qualified_friend_no_match::f(double); | ^ 0xe2c7af crash_signal /home/rguenther/src/trunk/gcc/toplev.cc:314 0x793c24 decls_match(tree_node*, tree_node*, bool) /home/rguenther/src/trunk/gcc/cp/decl.cc:1075 0x7b6de6 find_last_decl /home/rguenther/src/trunk/gcc/cp/decl2.cc:1630 since it's not error-recovery it's still P1. Also crashes with namespace qualified_friend_no_match { void f(int); template<typename T> void f(T*); struct X { friend void qualified_friend_no_match::f(double *); }; } which looks more valid to me, but I'm not a C++ expert (but clang++ 13 accepts it - but that also accepts the original testcase).