[Bug c++/17829] [3.4/4.0 Regression] wrong error: call of overloaded function is ambiguous

bangerth at dealii dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 5 13:05:00 GMT 2004


------- Additional Comments From bangerth at dealii dot org  2004-10-05 13:05 -------
Well, yea, Nathan got me on the wrong track when mentioning Koenig. 
Koenig has nothing to do at all with the present problem. I simply 
forgot to realize that the call is from within a member function, 
not a global function. 
 
I don't have the right section of the standard ready, but all my instincts 
tell me that the call in the example is not ambiguous, but should quite 
unambiguously find the member function only. Note that the standard 
specifically says that the search for candidates ends if one or several 
are found in one scope from within the hierarchy of scopes that are 
searched  sequentially. I would guess that the class scope is the first 
one to look at. 
 
W. 

-- 


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



More information about the Gcc-bugs mailing list