Hi, struct Foo { std::string s; }; Foo f; emits warning: 'Foo::s' should be initialized in the member initialization list. Um, what? :)
-- Summary: -Weff++ warns about missing usage of const initalizer list in synthesized ctors Product: gcc Version: 4.0.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mutz at kde dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22431