https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87108
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |60679 Status|NEW |SUSPENDED --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Suspending as CWG 1647 is still active. And yes changing int to unsigned long in the reduced testcase makes the error go away. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60679 [Bug 60679] [DR1647] class specialization not instantiated even though it is a better match than the primary template