[Bug c++/27762] map of valarray produces bad output
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Wed May 24 20:49:00 GMT 2006
------- Comment #2 from pcarlini at suse dot de 2006-05-24 20:48 -------
This triggers undefined behavior: map::operator[] inserts a default-constructed
(i.e., empty) valarray (C++03, 23.3.1.2), then valarray::operator= has
undefined behavior because the argument has 3 elements and *this zero
(26.3.2.2).
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27762
More information about the Gcc-bugs
mailing list