------- Comment #10 from gdr at integrable-solutions dot net  2010-02-12 00:20 
-------
Subject: Re:  Strange behaviour of valarray::apply method

On Thu, Feb 11, 2010 at 6:08 PM, paolo dot carlini at oracle dot com
<gcc-bugzi...@gcc.gnu.org> wrote:
> ------- Comment #9 from paolo dot carlini at oracle dot com  2010-02-12 00:08 
> -------
> Gaby, any chance you can give me some guidance about this issue? What do you
> think should we do now? The PR remained in limbo for way too much time, in my
> opinion. Thanks in advance.

at the moment, I believe fixing this means throwing away the
current valarray implementation.  I'm fine with that if someone
proposes a better implementation performance-wise.

Personal opinion: I do not think that the case submitted is
an examplar of the usage envisioned for valarray.  If you want
to take address into a valarray object, create a valarray object.
Don't stick references into the middle temporaries.
But, that is - again - a personal opinion.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9679

Reply via email to