[Bug c++/61987] Name Resolution within a Template

2014-08-07 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61987 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/61987] Name Resolution within a Template

2014-08-01 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61987 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.

[Bug c++/61987] Name Resolution within a Template

2014-08-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61987 --- Comment #8 from Jonathan Wakely --- VC++ and the book are both wrong.

[Bug c++/61987] Name Resolution within a Template

2014-08-01 Thread gaoyuanming at hotmail dot com
t know whether it is an implementation issue, or it is by design. Best regards, Yuanming > From: gcc-bugzi...@gcc.gnu.org > To: gaoyuanm...@hotmail.com > Subject: [Bug c++/61987] Name Resolution within a Template > Date: Fri, 1 Aug 2014 10:28:36 + > > https://g

[Bug c++/61987] Name Resolution within a Template

2014-08-01 Thread gaoyuanming at hotmail dot com
o: gaoyuanm...@hotmail.com > Subject: [Bug c++/61987] Name Resolution within a Template > Date: Fri, 1 Aug 2014 10:06:00 + > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61987 > > --- Comment #4 from Andrew Pinski --- > (In reply to Yuanming Gao from comment #3) > > Please

[Bug c++/61987] Name Resolution within a Template

2014-08-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61987 --- Comment #5 from Jonathan Wakely --- G++ and clang++ call f(double) four times, because that is the only function visible in the template definition. foo(int) is only visible at the point of instantiation, so could only be found by ADL, but in

[Bug c++/61987] Name Resolution within a Template

2014-08-01 Thread pinskia at gcc dot gnu.org
Well I disagree with that book based on what the c++ standard says about foundmental types and how argument dependent lookup works. > > > Best regards, > Yuanming Gao > > > From: gcc-bugzi...@gcc.gnu.org > > To: gaoyuanm...@hotmail.com > > Subject: [Bug c++/6

[Bug c++/61987] Name Resolution within a Template

2014-08-01 Thread gaoyuanming at hotmail dot com
nu.org > To: gaoyuanm...@hotmail.com > Subject: [Bug c++/61987] Name Resolution within a Template > Date: Fri, 1 Aug 2014 09:46:21 + > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61987 > > --- Comment #2 from Andrew Pinski --- > I don't think this is a bu

[Bug c++/61987] Name Resolution within a Template

2014-08-01 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61987 --- Comment #2 from Andrew Pinski --- 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.

[Bug c++/61987] Name Resolution within a Template

2014-08-01 Thread gaoyuanming at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61987 --- Comment #1 from Yuanming Gao --- Created attachment 33223 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33223&action=edit source code