https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77914
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #6) > Created attachment 40578 [details] > gcc7-pr77914.patch > > So like this (untested)? Looks good.