https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104648
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:1060d06b4df8836135ed15d020afbd3637dc625b commit r12-7410-g1060d06b4df8836135ed15d020afbd3637dc625b Author: Martin Liska <mli...@suse.cz> Date: Mon Feb 28 11:58:01 2022 +0100 Fix error recovery in toplev::finalize. PR ipa/104648 gcc/ChangeLog: * main.cc (main): Use flag_checking instead of CHECKING_P and run toplev::finalize only if there is not error seen. gcc/testsuite/ChangeLog: * g++.dg/pr104648.C: New test.