https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99963
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Patrick Palka from comment #1) Yes. The problem is that you're mixing up which template parameter goes with which function parameter.