https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80309
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 41133 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41133&action=edit gcc7-pr80309.patch Untested fix. Only the rewrite_template_parm are actually needed, the rest is just what I found while debugging.