https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114501
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- /* We avoid outputting external vars or functions by reference to the global decls section as we do not want to have them enter decl merging. We should not need to do this anymore because free_lang_data removes them from block scopes. */ gcc_assert (!VAR_OR_FUNCTION_DECL_P (t) || !DECL_EXTERNAL (t));