c++/3926: Trouble with namespaces
reichelt@igpm.rwth-aachen.de
reichelt@igpm.rwth-aachen.de
Fri Aug 3 10:16:00 GMT 2001
>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:
More information about the Gcc-prs
mailing list