------- 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 <iostream>
#include <map>
#include <valarray>

int main()
{
  std::map<int, std::valarray<int> > m;
  std::valarray<int> v(3);

  v[0] = 13;
  v[1] = 42;
  v[2] = 99;

  m[0] = v;

  std::cout << m[0][0] << ", " << m[0][1] << ", " << m[0][2] << '\n';

  return EXIT_SUCCESS;
}

I expect "13, 42, 99" but get "0, 0, 0".


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27762

Reply via email to