https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118673
--- Comment #20 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Jason Merrill from comment #19) > (In reply to Jason Merrill from comment #18) > > (In reply to Iain Sandoe from comment #16) > > > + if ((TREE_CODE (ref) == CONST_DECL && TREE_STATIC (ref)) > > > + || DECL_MERGEABLE (ref)) > > > > LGTM. > > Except we don't need to check TREE_STATIC because we already returned for > CONST_DECL without TREE_STATIC. indeed .. I'll test the revised version and post it.