[Bug libstdc++/12961] Problem with generic complex constructor

Yves dot Renard at gmm dot insa-tlse dot fr gcc-bugzilla@gcc.gnu.org
Mon Nov 10 11:18:00 GMT 2003


------- Additional Comments From Yves dot Renard at gmm dot insa-tlse dot fr  2003-11-10 11:18 -------
(In reply to comment #3 and  #4)

Ok, this means that 
float x;
does not initialize x, but
float x = float();
does initialize x to zero.

and  this is the same between
float v[56]  // does not initialize v
and
std::vector<float> v(56); // does initialize each component of v


This is a little bit strange to me but I suppose this is the norm.

Anyway, thank you very much for the information.




-- 


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



More information about the Gcc-bugs mailing list