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++/16053] Fails to identify overload


------- Additional Comments From bangerth at dealii dot org  2004-06-19 19:28 -------
icc 8, on the other hand accepts it. Initially, I had thought that in 
both cases of my example in comment #3 the compiler has to match 
exactly one template argument. In that case, an ambiguity would have 
been unavoidable. In fact, however, it has to match two template 
arguments for the friend function, and one for the non-friend. That's 
a case where partial ordering comes into play. 
 
I am not sure any more whether my analysis of my testcase is correct, 
and would like to solicit other opinions. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gdr at gcc dot gnu dot org,
                   |                            |nathan at gcc dot gnu dot
                   |                            |org
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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


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