https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80178
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 41138 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41138&action=edit fix Here's a fix. I'm nervous about applying it at this point in GCC 7, though.