This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/22431] New: -Weff++ warns about missing usage of const initalizer list in synthesized ctors
- From: "mutz at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jul 2005 07:20:35 -0000
- Subject: [Bug c++/22431] New: -Weff++ warns about missing usage of const initalizer list in synthesized ctors
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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