https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89866
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- This has been fixed between revisions r264810 (2018-10-03, wrong code) and r264951 (2018-10-09, OK) and the fix has not been back ported to the GCC8 branch). I did not find any obvious commit in this range. On the GCC8 branch I see the expected output up to r251946, but a segfault at runtime for r251980 (2017-09-11), likely r251949. AFAICT the wrong code issue appeared at revision r257065.