id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 8438,vector & circular_buffer storage misbehave when using compiler optimizations,ofir,Gunter,"When compiling the following code without optimizations, it behaves as expected: (compiled with g++-4.7.2 with no flags at all) {{{ #include #include #include int main () { boost::numeric::ublas::vector > v (3, 1); std::cout << v << std::endl; v[1] = 5; std::cout << v << std::endl; std::cout << v[1] << std::endl; return 0; } }}} Output: {{{ [3](1,1,1) [3](1,5,1) 5 }}} When compiling the exact same code with O1, O2, and O3 it produces the following output: {{{ [3](0,0,0) [3](0,0,0) 5 }}} I noticed that inner_prod() also sees the vector as zeros.",Bugs,new,To Be Determined,uBLAS,Boost 1.52.0,Problem,,,Douglas Gregor Jan Gaspar ofirmebel@…