https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66297
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 40732 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40732&action=edit fix Here's a fix; I'm inclined to hold it for GCC 8, now that the trunk is in regression-only mode.