https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118388
--- Comment #2 from Simon Martin <simartin at gcc dot gnu.org> --- We ICE in a gcc_assert (seen_error()), because we did a permerror but the error was downgraded to a warning due to -fpermissive. I have a patch that keeps track of such downgraded errors and takes them into account in seen_error() - I will submit it once the fix for bug #118319 lands.