Commit 3a172730 by Peter Schmid Committed by Benjamin Kosnik

22001-04-11 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>

        * g++.old-deja/g++.robertl/eb42.C: Same.

From-SVN: r41239
parent 06729913
2001-04-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 22001-04-11 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* g++.old-deja/g++.robertl/eb42.C: Same.
001-04-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/wtr-conversion-1.c: New testcase. * gcc.dg/wtr-conversion-1.c: New testcase.
......
//Build don't link: //Build don't link:
#include <vector.h> #include <vector>
#include <algo.h> #include <algorithm>
template <class T> class Expr template <class T> class Expr
{ {
...@@ -14,6 +14,6 @@ inline bool compare(const Expr<T> a, const Expr<T> b){ return true; }; ...@@ -14,6 +14,6 @@ inline bool compare(const Expr<T> a, const Expr<T> b){ return true; };
int main() int main()
{ {
vector<int> a(3); std::vector<int> a(3);
sort( a.begin(), a.end(), compare ); // ERROR - no matching function std::sort( a.begin(), a.end(), compare ); // ERROR - no matching function
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment