This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/5673: namespace handling error across inheritance
- From: dmuell at gmx dot net
- To: gcc-gnats at gcc dot gnu dot org
- Date: 12 Feb 2002 19:01:55 -0000
- Subject: c++/5673: namespace handling error across inheritance
- Reply-to: dmuell at gmx dot net
>Number: 5673
>Category: c++
>Synopsis: namespace handling error across inheritance
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Tue Feb 12 11:06:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: dmuell@gmx.net
>Release: gcc version 2.95.3 20010315
>Organization:
>Environment:
Linux 2.4.16
>Description:
Hi,
it seems to me that the attached source file shouldn't
compile, because the referenced method call is in a different
namespace.
I've posted the snippet on the mailinglist and all replies to
the posting came to the conclusion that this must be a bug in gcc.
http://gcc.gnu.org/ml/gcc/2002-02/msg00737.html
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="nstest.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="nstest.cc"
Cm5hbWVzcGFjZSBucyB7CgpjbGFzcyBiYXNlIHsKcHVibGljOgogIHZpcnR1YWwgfmJhc2UoKSB7
fTsKICB2aXJ0dWFsIHZvaWQgZm9vKCkge307Cn07Cgp9CgpjbGFzcyBkZXJpdmVkIDogcHVibGlj
IG5zOjpiYXNlIHsKcHVibGljOgogIHZpcnR1YWwgdm9pZCBmb28oKTsKfTsKCnZvaWQgZGVyaXZl
ZDo6Zm9vKCkKewogIGJhc2U6OmZvbygpOyAvLyBvciBuczo6YmFzZTo6Zm9vID8KfQoKaW50IG1h
aW4oKSAKewogIGRlcml2ZWQgZDsKICBkLmZvbygpOwogIHJldHVybiAwOwp9Cg==