--- 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
(2
--- Comment #1 from woessner at gmail dot com 2006-05-24 19:44 ---
Couldn't attach the .ii file (too big). Here's the source that generates the
problem:
#include
#include
#include
int main()
{
std::map > m;
std::valarray v(3);
v[0] = 13;
v[1] = 42;
v[2] = 99;
m[0] = v