https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106740
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:73f7109ffb159302e9d8f70948a5b43b046b38bc commit r14-591-g73f7109ffb159302e9d8f70948a5b43b046b38bc Author: Jason Merrill <ja...@redhat.com> Date: Mon May 8 18:22:30 2023 -0400 c++: non-template friend of template [PR106740] This was fixed by r13-1018, but the testcase seems needed. PR c++/106740 gcc/testsuite/ChangeLog: * g++.dg/template/friend78.C: New test.