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++/99] Bug in template type in error message.


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

--- Comment #19 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-10-09 18:47:33 UTC ---
Reconfirmed with revision 192154:

pr99.cc:6:30: error: call of overloaded âf(X<int>, X<int>)â is ambiguous
   return f(X<int>(), X<int>());
                              ^
pr99.cc:6:30: note: candidates are:
pr99.cc:2:26: note: int f(X<int>, X<Q>) [with Q = int]
 template<typename Q> int f(X<int>, X<Q>);
                          ^
pr99.cc:3:26: note: int f(X<Q>, X<int>) [with B = int]
 template<typename B> int f(X<B>, X<int>);
                          ^


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