https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70551
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #3) > Hmm, on the trunk C++11 and C++14 still do the instantiation but C++17 and > C++20 do not. Was there a change in the C++ standard around this area, > maybe a defect report? Note clang has the same behavior as GCC does with respect to the C++ standard versions too.