https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79487
--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #21) > Created attachment 40742 [details] > gcc7-pr79487.patch > > So perhaps like this? Would be nice to test it also with -O0 and the old > compiler. Just tried that on x86_64 with gcc 6.3.1 and it succeeds at -O0 and fails at -O2.