https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79163
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Target Milestone|--- |8.2 Resolution|--- |FIXED --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Seems to be fixed in 8.2 and later, by r261151: PR c++/61806 - missed SFINAE with partial specialization. * cp-tree.h (deferring_access_check_sentinel): Add deferring_kind parameter to constructor. * pt.c (instantiate_class_template_1): Enable access checking before call to most_specialized_partial_spec.