aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Lipe <robertl@gcc.gnu.org>1998-05-31 22:21:26 +0000
committerRobert Lipe <robertl@gcc.gnu.org>1998-05-31 22:21:26 +0000
commit9045f690f8149396782d96b723b6f97f78dddb37 (patch)
tree36b5ad416593fddbfa649ea72a6555e74686dd6f
parent1f4d936f3828c99d57a77e7a3f5dbe0d77630560 (diff)
downloadgcc-9045f690f8149396782d96b723b6f97f78dddb37.zip
gcc-9045f690f8149396782d96b723b6f97f78dddb37.tar.gz
gcc-9045f690f8149396782d96b723b6f97f78dddb37.tar.bz2
Mark call to sort() as error, per Alexandre Oliva.
From-SVN: r20157
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb42.C18
1 files changed, 18 insertions, 0 deletions
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 0000000..6d15ec7
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C
@@ -0,0 +1,18 @@
+#include <vector.h>
+#include <algo.h>
+
+template <class T> class Expr
+{
+public :
+Expr(){};
+Expr(const T&){};
+};
+
+template <class T >
+inline bool compare(const Expr<T> a, const Expr<T> b){ return true; };
+
+int main()
+{
+vector<int> a(3);
+sort( a.begin(), a.end(), compare ); // ERROR - no matching function
+}