egcs-1.1.1 vector<int>::assign problem

Andy.Robb Robb.Andy@x-tension.com
Tue Dec 22 11:07:00 GMT 1998


I can get the following to work under HP-UX 10.20 aCC but not on any
egcs-1.1.1 (HP-UX, Linux, FreeBSD):

#include <vector>

int data[] = { 1, 2, 3 };
vector< int > a(data, data + 3);    // works OK
vector< int > b;
b.assign(data, data + 3);        // fails under egcs

egcs gives the error message:
"no matching function for call to 'vector<int,
__default_alloc_template<false, 0> >::assign (int[3], int *)]"

I first noticed this with elements more complicated than int.  However,
the error was effectively the same.

Many thanks for a great compiler,
Andy Robb.



More information about the Gcc-bugs mailing list