http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55837
Bug #: 55837 Summary: -Weffc++: warning: 'xxx:yyy' should be initialized in the member initialization list Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: ham...@sdu.se Created attachment 29067 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29067 Self-contained source file This code static struct Error { int child_pid = 0; struct { bool s_sensor = false; } opt; } ss; gives a warning message 'Error::opt' should be initialized in the member initialization list [-Weffc++] But Error::opt is already initialized, since its only member is initialized. /Lars Hamrén