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

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).