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++/11296] Unqualified lookup should only use the definition context, if the funciton call is dependent (14.6.4.2, p1, bullet 1)


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11296


giovannibajo at libero dot it changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |giovannibajo at libero dot
                   |                            |it
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
   Last reconfirmed|0000-00-00 00:00:00         |2003-06-24 02:14:29
               date|                            |
            Summary|gcc 3.2 fails to honor      |Unqualified lookup should
                   |14.6.4.2, p1, bullet 1      |only use the definition
                   |                            |context, if the funciton
                   |                            |call is dependent
                   |                            |(§14.6.4.2, p1, bullet 1)


------- Additional Comments From giovannibajo at libero dot it  2003-06-24 02:14 -------
Confirmed. In other words, GCC incorrectly picks the second N::foo() because it 
lookups all the functions available at the point of call, while it should only 
use the definition context to lookup the function names for unqualified lookup. 
This would make it call the first N::foo().


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