https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117293
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am not sure this is related to SFINAE though. Rather it is in an unevaluated context where the diagnostic of deprecated should not happen.