https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115672
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #58527|0 |1 is obsolete| | --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 58528 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58528&action=edit Reduced further The second t argument type in the template definition is the key I think. Changing it to just class allows the testcase to work.