https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61987
--- Comment #3 from Yuanming Gao <gaoyuanming at hotmail dot com> --- Please read the book: <<Inside the Cpp Object Mode>>. The code comes from <<7.1 Templates>>. The author thought the function int foo(int) must be selected. Best regards, Yuanming Gao > From: gcc-bugzi...@gcc.gnu.org > To: gaoyuanm...@hotmail.com > Subject: [Bug c++/61987] Name Resolution within a Template > Date: Fri, 1 Aug 2014 09:46:21 +0000 > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61987 > > --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > I don't think this is a bug as foundmental types does not have an associated > namespace associated with it. So the overload set is only what is declared > before the template. > > -- > You are receiving this mail because: > You reported the bug.