public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/29077] New: Incorrect error message for destructor in wrong namespace @ 2006-09-14 1:16 ian at airs dot com 2006-09-14 1:38 ` [Bug c++/29077] " pinskia at gcc dot gnu dot org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: ian at airs dot com @ 2006-09-14 1:16 UTC (permalink / raw) To: gcc-bugs [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 701 bytes --] When I compile this C++ file with current mainline: class c { ~c(); }; namespace m { c::~c() { } } I get this error message: foo.cc:2: error: definition of void c::c() is not in namespace enclosing c This error is wrong: the definition in the wrong place is for c::~c(), not c::c(). -- Summary: Incorrect error message for destructor in wrong namespace Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ian at airs dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29077 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29077] Incorrect error message for destructor in wrong namespace 2006-09-14 1:16 [Bug c++/29077] New: Incorrect error message for destructor in wrong namespace ian at airs dot com @ 2006-09-14 1:38 ` pinskia at gcc dot gnu dot org 2007-02-22 6:50 ` patchapp at dberlin dot org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-09-14 1:38 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-14 01:38 ------- Confirmed. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |diagnostic Known to fail| |4.1.0 4.2.0 Last reconfirmed|0000-00-00 00:00:00 |2006-09-14 01:38:33 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29077 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29077] Incorrect error message for destructor in wrong namespace 2006-09-14 1:16 [Bug c++/29077] New: Incorrect error message for destructor in wrong namespace ian at airs dot com 2006-09-14 1:38 ` [Bug c++/29077] " pinskia at gcc dot gnu dot org @ 2007-02-22 6:50 ` patchapp at dberlin dot org 2007-03-28 21:06 ` simartin at gcc dot gnu dot org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: patchapp at dberlin dot org @ 2007-02-22 6:50 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from patchapp at dberlin dot org 2007-02-22 06:50 ------- Subject: Bug number PR c++/29077 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2007-02/msg01794.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29077 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29077] Incorrect error message for destructor in wrong namespace 2006-09-14 1:16 [Bug c++/29077] New: Incorrect error message for destructor in wrong namespace ian at airs dot com 2006-09-14 1:38 ` [Bug c++/29077] " pinskia at gcc dot gnu dot org 2007-02-22 6:50 ` patchapp at dberlin dot org @ 2007-03-28 21:06 ` simartin at gcc dot gnu dot org 2007-03-28 21:10 ` simartin at gcc dot gnu dot org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: simartin at gcc dot gnu dot org @ 2007-03-28 21:06 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from simartin at gcc dot gnu dot org 2007-03-28 22:06 ------- Subject: Bug 29077 Author: simartin Date: Wed Mar 28 22:06:01 2007 New Revision: 123312 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123312 Log: 2007-03-28 Simon Martin <simartin@users.sourceforge.net> PR c++/29077 * decl.c (grokfndecl): Properly setup decl if it is a constructor or a destructor. Added: trunk/gcc/testsuite/g++.dg/parse/constructor3.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29077 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29077] Incorrect error message for destructor in wrong namespace 2006-09-14 1:16 [Bug c++/29077] New: Incorrect error message for destructor in wrong namespace ian at airs dot com ` (2 preceding siblings ...) 2007-03-28 21:06 ` simartin at gcc dot gnu dot org @ 2007-03-28 21:10 ` simartin at gcc dot gnu dot org 2007-06-23 20:15 ` mmitchel at gcc dot gnu dot org 2007-08-17 15:31 ` pcarlini at suse dot de 5 siblings, 0 replies; 7+ messages in thread From: simartin at gcc dot gnu dot org @ 2007-03-28 21:10 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from simartin at gcc dot gnu dot org 2007-03-28 22:10 ------- Fixed on the mainline. -- simartin at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simartin at gcc dot gnu dot | |org AssignedTo|unassigned at gcc dot gnu |simartin at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Last reconfirmed|2006-09-14 01:38:33 |2007-03-28 22:10:36 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29077 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29077] Incorrect error message for destructor in wrong namespace 2006-09-14 1:16 [Bug c++/29077] New: Incorrect error message for destructor in wrong namespace ian at airs dot com ` (3 preceding siblings ...) 2007-03-28 21:10 ` simartin at gcc dot gnu dot org @ 2007-06-23 20:15 ` mmitchel at gcc dot gnu dot org 2007-08-17 15:31 ` pcarlini at suse dot de 5 siblings, 0 replies; 7+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2007-06-23 20:15 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from mmitchel at gcc dot gnu dot org 2007-06-23 20:15 ------- Can this issue be closed? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29077 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/29077] Incorrect error message for destructor in wrong namespace 2006-09-14 1:16 [Bug c++/29077] New: Incorrect error message for destructor in wrong namespace ian at airs dot com ` (4 preceding siblings ...) 2007-06-23 20:15 ` mmitchel at gcc dot gnu dot org @ 2007-08-17 15:31 ` pcarlini at suse dot de 5 siblings, 0 replies; 7+ messages in thread From: pcarlini at suse dot de @ 2007-08-17 15:31 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from pcarlini at suse dot de 2007-08-17 15:30 ------- I guess we can indeed close this one as fixed in mainline... -- pcarlini at suse dot de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29077 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-08-17 15:31 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-09-14 1:16 [Bug c++/29077] New: Incorrect error message for destructor in wrong namespace ian at airs dot com 2006-09-14 1:38 ` [Bug c++/29077] " pinskia at gcc dot gnu dot org 2007-02-22 6:50 ` patchapp at dberlin dot org 2007-03-28 21:06 ` simartin at gcc dot gnu dot org 2007-03-28 21:10 ` simartin at gcc dot gnu dot org 2007-06-23 20:15 ` mmitchel at gcc dot gnu dot org 2007-08-17 15:31 ` pcarlini at suse dot de
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).