https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109751
--- Comment #25 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:6396e37d451b2ef6d3cb9c11edbc06deeaccd808 commit r13-7771-g6396e37d451b2ef6d3cb9c11edbc06deeaccd808 Author: Jason Merrill <ja...@redhat.com> Date: Thu Aug 17 11:36:23 2023 -0400 Revert "c++: only declare satisfied friends" [PR109751] The earlier patch was only an incremental step toward making this sort of code work, and broke code that had been working. So let's revert it. This reverts commit r13-4035-gc41bbfcaf9d6ef. PR c++/109751 gcc/cp/ChangeLog: * pt.cc (tsubst_friend_function): Don't check constraints. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/concepts-friend11.C: Xfail. * g++.dg/cpp2a/concepts-friend15.C: New test.