This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3926: Trouble with namespaces
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3926: Trouble with namespaces
- From: reichelt at igpm dot rwth-aachen dot de
- Date: 3 Aug 2001 17:07:15 -0000
- Reply-To: reichelt at igpm dot rwth-aachen dot de
>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: