in case of non-static data member initializers. such as struct MyConfig_Foo { const int i=3; const float f=4.14f; }; one gets c++ -O2 -std=gnu++11 Config11.cpp -Wall Config11.cpp:21:15: warning: non-static const member ‘const int MyConfig_Foo::i’ in class without a constructor [-Wuninitialized] const int i=3; ^ Config11.cpp:22:17: warning: non-static const member ‘const float MyConfig_Foo::f’ in class without a constructor [-Wuninitialized] const float f=4.14f; ^ which I find incorrect.
Dup of bug 53594. *** This bug has been marked as a duplicate of bug 53594 ***