This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/6090: Problem with copy of std_valarray
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Gabriel Dos Reis <gdr at codesourcery dot com>
- Cc: erwan dot goasdoue at ipsis dot fr, gcc-bugs at gcc dot gnu dot org, gdr at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Wed, 10 Apr 2002 09:49:17 -0700 (PDT)
- Subject: Re: libstdc++/6090: Problem with copy of std_valarray
> That is the mandated behaviour, in particular if the source and the
> target don't have the same length then the behaviour is undefined.
I think the problem is that the assignment and copy ctor do different
things. Why is that?
-benjamin