This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [[patch] valarray (was Re: valarray_copy implementation question)


On Thu, Nov 26, 2009 at 5:42 AM, Christian BRUEL <christian.bruel@st.com> wrote:
>
>> This disposition makes your example above have an undefined behaviour.
>
> this : myarray[mymask] += valarray<int>(3,n);
>
> is undefined ???
> with
> myarray = size 10
> valrarray = size 10
> mymask = size 10, 2 true bits.

Yes.

>
> oh well...
>
> I've recorded the original bug
> at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42182

It should be closed as 'user error'.

-- Gaby


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