https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118513
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Nathaniel Shead from comment #4) > Confirmed. Without having looked into it too much I think maybe doing > `varpool_node::finalize_decl` might be the way to go to cover this and any > other related issues that may be cropping up by not having done so? Why aren't we calling make_rtl_for_nonlocal_decl for imported decls, anyway?