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

2008-09-03 Thread crazydm at gmail dot com
--- Comment #8 from crazydm at gmail dot com 2008-09-03 12:25 --- (In reply to comment #7) > Also note: in your original message you have wrong the relevant bit: > > > valarray::operator[](slice) const returns _Expr<_SClos<_ValArray,_Tp>, _Tp> &g

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

2008-09-03 Thread crazydm at gmail dot com
--- Comment #5 from crazydm at gmail dot com 2008-09-03 11:53 --- (In reply to comment #4) > This is not a bug, see 26.3.1/3: "Any function returning a valarray is > permitted to return an object of another type, provided all the const member > functions of valarray are a

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

2008-09-03 Thread crazydm at gmail dot com
--- Comment #3 from crazydm at gmail dot com 2008-09-03 11:27 --- Created an attachment (id=16207) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16207&action=view) slice_test.ii file in case you need it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37347

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

2008-09-03 Thread crazydm at gmail dot com
--- Comment #2 from crazydm at gmail dot com 2008-09-03 11:25 --- Created an attachment (id=16206) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16206&action=view) gcc -v -save-temps slice_test.cpp output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37347

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

2008-09-03 Thread crazydm at gmail dot com
--- Comment #1 from crazydm at gmail dot com 2008-09-03 11:25 --- Created an attachment (id=16205) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16205&action=view) The issue demonstration program this is a code that demostrates the issue. g++ slice_test.cpp -o sli

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

2008-09-03 Thread crazydm at gmail dot com
const returns wrong type. Product: gcc Version: 4.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: crazydm at gmail dot com GCC build triplet: Using b