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

Gabriel Dos Reis gdr@integrable-solutions.net
Sun Jun 8 16:12:00 GMT 2003


"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



More information about the Gcc-bugs mailing list