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]

Re: [Bug libstdc++/11126] New: Error in valarray::operator =


"lupoderi@tiscali.it" <gcc-bugzilla@gcc.gnu.org> writes:

| PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
| 
| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11126
| 
|            Summary: Error in valarray::operator =
|            Product: gcc
|            Version: 3.3
|             Status: UNCONFIRMED
|           Severity: normal
|           Priority: P2
|          Component: libstdc++
|         AssignedTo: unassigned@gcc.gnu.org
|         ReportedBy: lupoderi@tiscali.it
|                 CC: gcc-bugs@gcc.gnu.org
| 
| The valarrat::operator=() doesn't change the size of right side operand.

This is not a bug.  It is standard conformant behaviour.
A valarray is not expected to be size-adapting.  It is  undefined if
the left and the right sides have different sizes.  This must be a
FAQ.

-- Gaby


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