https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673
--- Comment #18 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Iain Sandoe from comment #16) > + if ((TREE_CODE (ref) == CONST_DECL && TREE_STATIC (ref)) > + || DECL_MERGEABLE (ref)) LGTM.