------- Comment #3 from oschmidt at gmx dot net 2006-09-18 08:47 ------- > > So which version do you think have a bug? > > I don't know which behaviour should be correct C++, but I think it is > dangerous > that an object with undefined content is constructed without even a compiler > warning.
I think every tested g++ version has a bug for the function f3. The version 3.3.5 seems to be ok with funtion f4 but the other versions (3.4.4 and 4.0.4) are also wrong in function f4. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29117