c++/9834: Duplicate use of class name is ignored
andrew.carson@brooks-pri.com
andrew.carson@brooks-pri.com
Mon Feb 24 16:36:00 GMT 2003
>Number: 9834
>Category: c++
>Synopsis: Duplicate use of class name is ignored
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 24 16:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: andrew.carson@brooks-pri.com
>Release: unknown-1.0
>Organization:
>Environment:
egcs-2.91.66 19990314 (egcs-1.1.2 release)
though
gcc version 3.4 20030128 (experimental)
>Description:
The following code compiles and links, and it seems that it shouldn't:
bug.cxx:
-----------------------------------
#include <iostream>
struct A {
static void foo();
};
void
A::A::A::A::A::A::A::A::foo()
{
std::cerr << "A::A::A::A::A::A::A::A::foo" << std::endl;
}
int
main()
{
A::A::foo();
return 1;
}
-----------------------------------
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list