From 9045f690f8149396782d96b723b6f97f78dddb37 Mon Sep 17 00:00:00 2001 From: Robert Lipe Date: Sun, 31 May 1998 22:21:26 +0000 Subject: [PATCH] Mark call to sort() as error, per Alexandre Oliva. From-SVN: r20157 --- gcc/testsuite/g++.old-deja/g++.robertl/eb42.C | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.robertl/eb42.C 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 +} -- 2.30.2