This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Incorrect assignment in Valarray
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Incorrect assignment in Valarray
- From: "Radek Pecher" <r dot pecher at rdr dot leeds dot ac dot uk>
- Date: Wed, 14 Jun 2000 14:00:17 +0100
- Organization: RDR, University of Leeds
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