https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86651
--- Comment #9 from rguenther at suse dot de <rguenther at suse dot de> --- On July 25, 2018 5:21:38 PM GMT+02:00, jwjagersma at gmail dot com <gcc-bugzi...@gcc.gnu.org> wrote: >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. Thanks for checking. Do you maybe can make preprocessed source of required CUs available? You can reduce the set of needed inputs by using -shared at link time so unresolved symbols are considered OK.