https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86074
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Moving the definition of the operator== and operator!= out from the template class, then the code works.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86074
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Moving the definition of the operator== and operator!= out from the template class, then the code works.