http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46731
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-11-30 19:15:23 UTC --- Actually it is not valid but for a different reason than what GCC gives. See PR 24163, and PR 15272 for the reasons why g() should not be found when doing the lookup.