This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/37347] valarray::operator[](slice) const returns wrong type.



------- Comment #7 from paolo dot carlini at oracle dot com  2008-09-03 12:08 -------
Also note: in your original message you have wrong the relevant bit:

> valarray::operator[](slice) const returns _Expr<_SClos<_ValArray,_Tp>, _Tp>
> instead of slice_array<Tp>, 
             ^^^^^^^^^^^^^^^

The return type, to which 26.3.1/3 applies, is valarray<T>, *not*
slice_array<T>.


-- 


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


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