This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/3926: Trouble with namespaces



>Number:         3926
>Category:       c++
>Synopsis:       Trouble with namespaces
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 03 10:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Volker Reichelt
>Release:        gcc 2.95.3, gcc 3.0
>Organization:
>Environment:
i686-pc-linux-gnu, mips-sgi-irix6.5
>Description:
The following illegal code (the function "f" should not
be visible in thge global namespace) compiles without
errors using g++ 3.0 or 2.95.3:

namespace ZZZ
{
  struct T {};
  void f (T) {}
}

void g() { ZZZ::T x; f(x); }

The bug seems to be platform independant and
might be related to PR 2127.
>How-To-Repeat:
g++ -c Bug.cpp
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]