------- Comment #1 from redi at gcc dot gnu dot org 2009-11-13 10:03 ------- Can you be more specific? Ordinary unqualified lookup finds ::g and lookup in the associated namespace finds NS::g, the latter is a better match for the arguments. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42026