Google ref: b/15789654 Fails with current trunk, and all older versions I've tried. g++ -c t.cc -std=c++11 t.cc: In function 'void Bar()': t.cc:9:11: error: uninitialized const member 'Foo::b' Fn( {1} ); ^ /// -- cut --- struct Foo { long a; const long b; }; void Fn(const Foo&); void Bar() { Fn( {1} ); } /// -- cut --- Removing 'const' and examining assembly shows that GCC *does* initialize 'b' to 0 (as it should).
Dup. *** This bug has been marked as a duplicate of bug 49132 ***