public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22431] New: -Weff++ warns about missing usage of const initalizer list in synthesized ctors
@ 2005-07-12 8:03 mutz at kde dot org
2005-07-12 11:28 ` [Bug c++/22431] " gdr at integrable-solutions dot net
2005-07-12 15:27 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: mutz at kde dot org @ 2005-07-12 8:03 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/22431] -Weff++ warns about missing usage of const initalizer list in synthesized ctors
2005-07-12 8:03 [Bug c++/22431] New: -Weff++ warns about missing usage of const initalizer list in synthesized ctors mutz at kde dot org
@ 2005-07-12 11:28 ` gdr at integrable-solutions dot net
2005-07-12 15:27 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: gdr at integrable-solutions dot net @ 2005-07-12 11:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From gdr at integrable-solutions dot net 2005-07-12 11:27 -------
Subject: Re: New: -Weff++ warns about missing usage of const initalizer list in synthesized ctors
"mutz at kde dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| Hi,
|
| struct Foo {
| std::string s;
| };
|
| Foo f;
|
| emits
| warning: 'Foo::s' should be initialized in the member initialization list.
|
| Um, what? :)
compiler is speaking nonsense :-)
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22431
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/22431] -Weff++ warns about missing usage of const initalizer list in synthesized ctors
2005-07-12 8:03 [Bug c++/22431] New: -Weff++ warns about missing usage of const initalizer list in synthesized ctors mutz at kde dot org
2005-07-12 11:28 ` [Bug c++/22431] " gdr at integrable-solutions dot net
@ 2005-07-12 15:27 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-12 15:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-12 15:20 -------
Confirmed, not a regression.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Known to fail| |2.95 3.0.4 3.2.2 4.0.0 3.4.0
| |3.3.3
Last reconfirmed|0000-00-00 00:00:00 |2005-07-12 15:20:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22431
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-12 15:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-12 8:03 [Bug c++/22431] New: -Weff++ warns about missing usage of const initalizer list in synthesized ctors mutz at kde dot org
2005-07-12 11:28 ` [Bug c++/22431] " gdr at integrable-solutions dot net
2005-07-12 15:27 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).