------- Comment #7 from jason at gcc dot gnu dot org 2010-04-14 20:26 ------- Presumably TREE_USED isn't set on the global declaration because the call uses the local one. And the local declaration might not be redundant if the programmer is using it to suppress argument-dependent lookup.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43728