https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104366
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>: https://gcc.gnu.org/g:38948b77dbc16f4c6cf6cff8661bab699b306f03 commit r12-7049-g38948b77dbc16f4c6cf6cff8661bab699b306f03 Author: Eric Botcazou <ebotca...@adacore.com> Date: Fri Feb 4 12:07:46 2022 +0100 Empty the base_types vector before (re)populating it Otherwise Bad Things happen when it is populated several times. gcc/ PR debug/104366 * dwarf2out.cc (dwarf2out_finish): Empty base_types. (dwarf2out_early_finish): Likewise.