------- Comment #4 from pinskia at gcc dot gnu dot org 2009-11-06 04:19 ------- (In reply to comment #3) > Then why > > #define TYPE N::B > > works? > > why argument dependent lookup doesn't take effect? Both B and func are in > namespace N.
Because N::func is only a friend of N::C so it is only found for N::C. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41960