public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21347] New: spurious warning with -Wctor-dtor-privacy
@ 2005-05-02 21:41 bh at techhouse dot brown dot edu
2005-05-02 21:44 ` [Bug c++/21347] " bh at techhouse dot brown dot edu
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bh at techhouse dot brown dot edu @ 2005-05-02 21:41 UTC (permalink / raw)
To: gcc-bugs
cat > foo.cpp << EOF
class A {
public:
int x;
int getX() { return x; } // comment out to avoid warning
};
int foo() {
A a; // accepted: clearly the ctor is not private
return a.x;
}
EOF
g++ -c -Wctor-dtor-privacy foo.cpp
foo.cpp:1: warning: 'class A' only defines private constructors and has no friends
This occurs in 4.0.0 and is a regression from 3.3.5 and 3.4.3.
--
Summary: spurious warning with -Wctor-dtor-privacy
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bh at techhouse dot brown dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/21347] spurious warning with -Wctor-dtor-privacy
2005-05-02 21:41 [Bug c++/21347] New: spurious warning with -Wctor-dtor-privacy bh at techhouse dot brown dot edu
@ 2005-05-02 21:44 ` bh at techhouse dot brown dot edu
2005-05-02 21:50 ` [Bug c++/21347] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: bh at techhouse dot brown dot edu @ 2005-05-02 21:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bh at techhouse dot brown dot edu 2005-05-02 21:44 -------
It's also in the main branch -- gcc version 4.1.0 20050501 (experimental).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/21347] [4.0/4.1 Regression] spurious warning with -Wctor-dtor-privacy
2005-05-02 21:41 [Bug c++/21347] New: spurious warning with -Wctor-dtor-privacy bh at techhouse dot brown dot edu
2005-05-02 21:44 ` [Bug c++/21347] " bh at techhouse dot brown dot edu
@ 2005-05-02 21:50 ` pinskia at gcc dot gnu dot org
2005-06-26 17:42 ` pinskia at gcc dot gnu dot org
2005-07-08 1:43 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-02 21:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-02 21:50 -------
Confirmed, this has been failing since "3.5.0 20040909".
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |diagnostic
Known to fail| |4.0.0 4.1.0
Known to work| |3.4.0
Last reconfirmed|0000-00-00 00:00:00 |2005-05-02 21:50:49
date| |
Summary|spurious warning with - |[4.0/4.1 Regression]
|Wctor-dtor-privacy |spurious warning with -
| |Wctor-dtor-privacy
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/21347] [4.0/4.1 Regression] spurious warning with -Wctor-dtor-privacy
2005-05-02 21:41 [Bug c++/21347] New: spurious warning with -Wctor-dtor-privacy bh at techhouse dot brown dot edu
2005-05-02 21:44 ` [Bug c++/21347] " bh at techhouse dot brown dot edu
2005-05-02 21:50 ` [Bug c++/21347] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-06-26 17:42 ` pinskia at gcc dot gnu dot org
2005-07-08 1:43 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-26 17:42 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Last reconfirmed|2005-05-02 21:50:49 |2005-06-26 17:41:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/21347] [4.0/4.1 Regression] spurious warning with -Wctor-dtor-privacy
2005-05-02 21:41 [Bug c++/21347] New: spurious warning with -Wctor-dtor-privacy bh at techhouse dot brown dot edu
` (2 preceding siblings ...)
2005-06-26 17:42 ` pinskia at gcc dot gnu dot org
@ 2005-07-08 1:43 ` mmitchel at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08 1:43 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.1 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-07-08 1:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-02 21:41 [Bug c++/21347] New: spurious warning with -Wctor-dtor-privacy bh at techhouse dot brown dot edu
2005-05-02 21:44 ` [Bug c++/21347] " bh at techhouse dot brown dot edu
2005-05-02 21:50 ` [Bug c++/21347] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-06-26 17:42 ` pinskia at gcc dot gnu dot org
2005-07-08 1:43 ` mmitchel 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).