https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84186 --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Yes, I would have thought it's needed too. The other compilers I tried accept it with or without the 'template' keyword.