[LLVMbugs] [Bug 6945] Failed template argument deduction should mention argument types
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 21 16:48:21 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=6945
Douglas Gregor <dgregor at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor <dgregor at apple.com> 2010-05-21 18:48:21 CDT ---
This was fixed a few weeks ago, and is much more helpful now:
t.cpp:4:12: error: no matching function for call to 'max'
return std::max(arg1, arg2);
^~~~~~~~
In file included from t.cpp:1:
In file included from /usr/include/c++/4.2.1/algorithm:64:
/usr/include/c++/4.2.1/bits/stl_algobase.h:204:5: note: candidate template
ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'long')
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/4.2.1/bits/stl_algobase.h:246:5: note: candidate function
template not viable: requires 3 arguments, but 2 were provided
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list