https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103760
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to danakj from comment #7) > MSVC and Clang both accept this code, which GCC rejects. Is it the same > issue and GCC is compliant here? I think so because of this part: "so substitution failure from within the lambda ought to be a hard error, not a SFINAE error." In this case the substitution within a constexpr/consteval lambda to fail.