https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70551
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- 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?