https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81145
--- Comment #5 from Richard Smith <richard-gccbugzilla at metafoo dot co.uk> --- Yes, according to godbolt this occurs in GCC 4.4 - 7.1, but not in trunk. Unlike PR80593, it does not appear to be a GCC 7 regression, but it sure seems plausible that that change fixed it =)