https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92078
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- N.B. the "redeclared with different access" bug is fixed, but constraints on nested class templates still don't work. That's PR 92103.