https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120917
--- Comment #22 from Frank Heckenbach <f.heckenb...@fh-soft.de> --- (In reply to Frank Heckenbach from comment #21) > (In reply to Jason Merrill from comment #20) > > (In reply to Frank Heckenbach from comment #18) > > > So, could this be a viable workaround? > > > > If you're going to modify your code to address this, it seems more > > straightforward to add the explicit template-head. > > I don't think so. My workaround, if it's viable, is localized and can be > done with text substitution (sed), the explicit template-head is not > localized (often affecting multiple lines) and cannot easily be automated > AFAICS. > > So my question stands. PS: I also think the explicit template-head makes the code harder to read because one has to mentally match the template parameter declarations and usage. I think that's a general disadvantage of C++ template syntax. <auto> would have alleviated it to some extent, but alas.