public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6734: Overly permissive name lookup
@ 2002-05-20 5:36 ericcrampton
0 siblings, 0 replies; 2+ messages in thread
From: ericcrampton @ 2002-05-20 5:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 6734
>Category: c++
>Synopsis: Overly permissive name lookup
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 20 05:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: ericcrampton@hotmail.com
>Release: gcc-3.1 and gcc-3.0.4
>Organization:
>Environment:
Redhat Linux 7.2 (Intel), verified on gcc-3.1 and gcc-3.0.4
>Description:
The code below compiles, but it should not. The compiler is allowing a class and namespace to have the same name, but it should not.
FWIW, Comeau's compiler rejects this code.
namespace Foo
{
}
class Foo
{
};
int main()
{
}
>How-To-Repeat:
Compile the code in the description.
>Fix:
Output an error.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/6734: Overly permissive name lookup
@ 2002-05-22 7:03 lerdsuwa
0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2002-05-22 7:03 UTC (permalink / raw)
To: ericcrampton, gcc-bugs, gcc-prs, nobody
Synopsis: Overly permissive name lookup
State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Wed May 22 07:03:47 2002
State-Changed-Why:
Confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6734
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-22 14:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-20 5:36 c++/6734: Overly permissive name lookup ericcrampton
2002-05-22 7:03 lerdsuwa
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).