From: Robert Lipe Date: Sun, 31 May 1998 22:21:26 +0000 (+0000) Subject: Mark call to sort() as error, per Alexandre Oliva. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9045f690f8149396782d96b723b6f97f78dddb37;p=gcc.git Mark call to sort() as error, per Alexandre Oliva. From-SVN: r20157 --- diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C new file mode 100644 index 00000000000..6d15ec7e5ea --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C @@ -0,0 +1,18 @@ +#include +#include + +template class Expr +{ +public : +Expr(){}; +Expr(const T&){}; +}; + +template +inline bool compare(const Expr a, const Expr b){ return true; }; + +int main() +{ +vector a(3); +sort( a.begin(), a.end(), compare ); // ERROR - no matching function +}