https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117317
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 59465 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59465&action=edit Slightly more reduced Note if Comparable is not a template, this works.