public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21181] New: namespace lookup error message misleading
@ 2005-04-23 20:27 tneumann at pi3 dot informatik dot uni-mannheim dot de
  2005-04-23 20:38 ` [Bug c++/21181] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tneumann at pi3 dot informatik dot uni-mannheim dot de @ 2005-04-23 20:27 UTC (permalink / raw)
  To: gcc-bugs

Consider the following C++ code:

class A;
namespace X {
class B { friend class A; };
}
using namespace X;
class A {};
A a;

In the last line the compiler complains that A is undefined. After reading the 
release notes I understamd what happens (although I'm surprised. E.g. Comeau 
accepts the code). 
However the error message is very misleading: The problem is not that A is 
undefined but that X::A is undefined! This is very confusing for users.

-- 
           Summary: namespace lookup error message misleading
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tneumann at pi3 dot informatik dot uni-mannheim dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21181


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-04-24 19:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-23 20:27 [Bug c++/21181] New: namespace lookup error message misleading tneumann at pi3 dot informatik dot uni-mannheim dot de
2005-04-23 20:38 ` [Bug c++/21181] " pinskia at gcc dot gnu dot org
2005-04-24 15:23 ` Woebbeking at web dot de
2005-04-24 16:01 ` Woebbeking at web dot de
2005-04-24 16:05 ` pinskia at gcc dot gnu dot org
2005-04-24 16:18 ` Woebbeking at web dot de
2005-04-24 16:20 ` pinskia at gcc dot gnu dot org
2005-04-24 17:24 ` Woebbeking at web dot de
2005-04-24 17:27 ` pinskia at gcc dot gnu dot org
2005-04-24 19:45 ` Woebbeking at web 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).