https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45976
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |8.0 --- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- That template keyword is not allowed in a declarator-id, but I've fixed GCC 8 to accept it with a pedwarn.