https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118347
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- EDG accepts this code too. I am not 100% sure this requires a template here. Also I found a different issue which I filed PR 118347 for it.
