aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C
blob: 8850f9fa63981707aa80e324ca4755eca909b640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Build don't link:
#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 
}