OSDN Git Service

Mark call to sort() as error, per Alexandre Oliva.
authorrobertl <robertl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 31 May 1998 22:21:26 +0000 (22:21 +0000)
committerrobertl <robertl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 31 May 1998 22:21:26 +0000 (22:21 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20157 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/g++.old-deja/g++.robertl/eb42.C [new file with mode: 0644]

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 (file)
index 0000000..6d15ec7
--- /dev/null
@@ -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 
+}