This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/99] Bug in template type in error message.
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Oct 2012 18:47:33 +0000
- Subject: [Bug c++/99] Bug in template type in error message.
- Auto-submitted: auto-generated
- References: <bug-99-4@http.gcc.gnu.org/bugzilla/>
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>);
^