https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86651
--- Comment #8 from jwjagersma at gmail dot com --- (In reply to rguent...@suse.de from comment #7) > There are latent bugs that now affect darwin, mingw and djgpp (after your > patch) by default when compiling with -g0 and linking with -g > (which is basically what those patches enforce). > > Some of them have been fixed on the GCC 8 branch already so I suggest > you use the GCC 8.2 release candidate tarball to see if it works there. > (ftp://gcc.gnu.org/pub/gcc/snapshots/8.2.0-RC-20180719/) I successfully built the snapshot you linked with this patch applied, but compiling my c++ program still generated the same ICE.