This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23724] name lookup bug
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2005 18:15:20 -0000
- Subject: [Bug c++/23724] name lookup bug
- References: <20050904180327.23724.sylvain.pion@sophia.inria.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-04 18:15 -------
This is not a bug as the overloaded set for f when the function call in the template is parsed does not
contain the two argument function. This is required by the C++ standard to be rejected.
If you rename the two argument function to g, we have an empty overloaded set so we have to do
normal lookup when instainating the template function.
Hopefully this explains what is going on.
Anyways this is a progression and not a regression and a dup of bug 2922 since this was accepts
invalid before 4.1.0.
*** This bug has been marked as a duplicate of 2922 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23724