http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52974
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-13 13:16:01 UTC --- The canonicalized version of that error is a lot more readable t.cc: In function 'void f()': t.cc:2:23: error: no matching function for call to 'sort(int)' t.cc:2:23: note: candidates are: In file included from /home/redi/gcc/4.x/include/c++/4.8.0/algorithm:63:0, from t.cc:1: /home/redi/gcc/4.x/include/c++/4.8.0/bits/stl_algo.h:5420:5: note: template<class _RAIter> void std::sort(_RAIter, _RAIter) /home/redi/gcc/4.x/include/c++/4.8.0/bits/stl_algo.h:5420:5: note: template argument deduction/substitution failed: t.cc:2:23: note: candidate expects 2 arguments, 1 provided In file included from /home/redi/gcc/4.x/include/c++/4.8.0/algorithm:63:0, from t.cc:1: /home/redi/gcc/4.x/include/c++/4.8.0/bits/stl_algo.h:5456:5: note: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare) /home/redi/gcc/4.x/include/c++/4.8.0/bits/stl_algo.h:5456:5: note: template argument deduction/substitution failed: t.cc:2:23: note: candidate expects 3 arguments, 1 provided