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; 11+ 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] 11+ 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; 11+ 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] 11+ 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; 11+ 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] 11+ 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; 11+ 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] 11+ 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; 11+ 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] 11+ messages in thread
[parent not found: <20050502214022.21347.benoit.hudson@gmail.com>]
* [Bug c++/21347] [4.0/4.1 Regression] spurious warning with -Wctor-dtor-privacy [not found] <20050502214022.21347.benoit.hudson@gmail.com> @ 2005-09-27 16:13 ` mmitchel at gcc dot gnu dot org 0 siblings, 0 replies; 11+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:13 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.2 |4.0.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347 ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <bug-21347-655@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/21347] [4.0/4.1 Regression] spurious warning with -Wctor-dtor-privacy [not found] <bug-21347-655@http.gcc.gnu.org/bugzilla/> @ 2005-10-13 19:51 ` pinskia at gcc dot gnu dot org 2005-10-14 20:04 ` mmitchel at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 11+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-10-13 19:51 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from pinskia at gcc dot gnu dot org 2005-10-13 19:51 ------- : Search converges between 2004-07-17-trunk (#488) and 2004-07-18-trunk (#489). I suspect this was caused by: 2004-07-16 Mark Mitchell <mark@codesourcery.com> * class.c (finish_struct_methods): Remove unncessary code. (add_implicitly_declared_members): Create declarations for default constructors and copy constructors lazily. * cp-tree.h (lang_type_class): Remove lazy_default_ctor and lazy_copy_ctor. (CLASSTYPE_LAZY_DEFAULT_CTOR): New macro. (CLASSTYPE_LAZY_COPY_CTOR): Likewise. .... -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2005-09-10 17:02:36 |2005-10-13 19:51:41 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21347] [4.0/4.1 Regression] spurious warning with -Wctor-dtor-privacy [not found] <bug-21347-655@http.gcc.gnu.org/bugzilla/> 2005-10-13 19:51 ` pinskia at gcc dot gnu dot org @ 2005-10-14 20:04 ` mmitchel at gcc dot gnu dot org 2005-10-15 18:09 ` cvs-commit at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 11+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-10-14 20:04 UTC (permalink / raw) To: gcc-bugs -- mmitchel at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21347] [4.0/4.1 Regression] spurious warning with -Wctor-dtor-privacy [not found] <bug-21347-655@http.gcc.gnu.org/bugzilla/> 2005-10-13 19:51 ` pinskia at gcc dot gnu dot org 2005-10-14 20:04 ` mmitchel at gcc dot gnu dot org @ 2005-10-15 18:09 ` cvs-commit at gcc dot gnu dot org 2005-10-15 18:13 ` cvs-commit at gcc dot gnu dot org 2005-10-15 18:13 ` mmitchel at gcc dot gnu dot org 4 siblings, 0 replies; 11+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-10-15 18:09 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from cvs-commit at gcc dot gnu dot org 2005-10-15 18:09 ------- Subject: Bug 21347 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-4_0-branch Changes by: mmitchel@gcc.gnu.org 2005-10-15 18:09:46 Modified files: gcc/cp : class.c ChangeLog gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/warn: Wctor-dtor.C Log message: PR c++/21347 * class.c (maybe_warn_about_overly_private_class): Lazy constructors are public. PR c++/21347 * g++.dg/warn/Wctor-dtor.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.707.2.7&r2=1.707.2.8 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.135&r2=1.4648.2.136 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/Wctor-dtor.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.457&r2=1.5084.2.458 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21347] [4.0/4.1 Regression] spurious warning with -Wctor-dtor-privacy [not found] <bug-21347-655@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2005-10-15 18:09 ` cvs-commit at gcc dot gnu dot org @ 2005-10-15 18:13 ` cvs-commit at gcc dot gnu dot org 2005-10-15 18:13 ` mmitchel at gcc dot gnu dot org 4 siblings, 0 replies; 11+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-10-15 18:13 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from cvs-commit at gcc dot gnu dot org 2005-10-15 18:13 ------- Subject: Bug 21347 CVSROOT: /cvs/gcc Module name: gcc Changes by: mmitchel@gcc.gnu.org 2005-10-15 18:13:25 Modified files: gcc/cp : class.c ChangeLog gcc/testsuite : ChangeLog Added files: gcc/testsuite/g++.dg/warn: Wctor-dtor.C Log message: PR c++/21347 * class.c (maybe_warn_about_overly_private_class): Lazy constructors are public. PR c++/21347 * g++.dg/warn/Wctor-dtor.C: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.736&r2=1.737 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4933&r2=1.4934 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/warn/Wctor-dtor.C.diff?cvsroot=gcc&r1=1.1&r2=1.2 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6194&r2=1.6195 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/21347] [4.0/4.1 Regression] spurious warning with -Wctor-dtor-privacy [not found] <bug-21347-655@http.gcc.gnu.org/bugzilla/> ` (3 preceding siblings ...) 2005-10-15 18:13 ` cvs-commit at gcc dot gnu dot org @ 2005-10-15 18:13 ` mmitchel at gcc dot gnu dot org 4 siblings, 0 replies; 11+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-10-15 18:13 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from mmitchel at gcc dot gnu dot org 2005-10-15 18:13 ------- Fixed in 4.0.3. -- mmitchel at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21347 ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-10-15 18:13 UTC | newest] Thread overview: 11+ 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 [not found] <20050502214022.21347.benoit.hudson@gmail.com> 2005-09-27 16:13 ` mmitchel at gcc dot gnu dot org [not found] <bug-21347-655@http.gcc.gnu.org/bugzilla/> 2005-10-13 19:51 ` pinskia at gcc dot gnu dot org 2005-10-14 20:04 ` mmitchel at gcc dot gnu dot org 2005-10-15 18:09 ` cvs-commit at gcc dot gnu dot org 2005-10-15 18:13 ` cvs-commit at gcc dot gnu dot org 2005-10-15 18:13 ` 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).