This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/6090: Problem with copy of std_valarray
- From: erwan dot goasdoue at ipsis dot fr
- To: gcc-gnats at gcc dot gnu dot org
- Date: 29 Mar 2002 10:10:21 -0000
- Subject: libstdc++/6090: Problem with copy of std_valarray
- Reply-to: erwan dot goasdoue at ipsis dot fr
>Number: 6090
>Category: libstdc++
>Synopsis: Problem with copy of std_valarray
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 29 02:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: std_valarray.h
>Release: happened with gcc 2.95.3
>Organization:
>Environment:
linux mandrake 8.1
>Description:
Problem with operator= :
valarray<_Tp>::operator= (const valarray<_Tp>& __v)
{
__valarray_copy(__v._M_data, _M_size, _M_data);
return *this;
}
contrary to :
template<typename _Tp>
inline valarray<_Tp>::valarray (const valarray<_Tp>& __v)
: _M_size (__v._M_size), _M_data (new _Tp[__v._M_size])
{ __valarray_copy (__v._M_data, _M_size, _M_data); }
never modify size of target.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: