Incorrect assignment in Valarray

Radek Pecher r.pecher@rdr.leeds.ac.uk
Thu Jun 15 05:58:00 GMT 2000


Dear friends at GNU,

There seems to be an error on line 76 of file 'valarray_array.h':

{ for (size_t __i=0; __i<__n; ++__i, ++__b, __a += __s) *__b += *__a; }

Obviously, the second operator '+=' should be just a pure assignment: *__b =
*__a.

Regards,
Radek




More information about the Gcc-bugs mailing list