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

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

From-SVN: r41239
This commit is contained in:
Peter Schmid 2001-04-11 05:43:51 +00:00 committed by Benjamin Kosnik
parent 06729913c7
commit 3a1727303c
2 changed files with 9 additions and 5 deletions

View file

@ -1,4 +1,8 @@
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.

View file

@ -1,6 +1,6 @@
//Build don't link:
#include <vector.h>
#include <algo.h>
#include <vector>
#include <algorithm>
template <class T> class Expr
{
@ -14,6 +14,6 @@ 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
std::vector<int> a(3);
std::sort( a.begin(), a.end(), compare ); // ERROR - no matching function
}