This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/37347] valarray::operator[](slice) const returns wrong type.
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2008 11:34:42 -0000
- Subject: [Bug libstdc++/37347] valarray::operator[](slice) const returns wrong type.
- References: <bug-37347-16660@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from paolo dot carlini at oracle dot com 2008-09-03 11:34 -------
This is not a bug, see 26.3.1/3: "Any function returning a valarray<T> is
permitted to return an object of another type, provided all the const member
functions of valarray<T> are also applicabel to this type". CC-ing Gaby, to be
sure.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gdr at cs dot tamu dot edu
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37347