This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/23724] name lookup bug


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]