This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Incorrect assignment in Valarray



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]