Bug 54785
Summary: | g++ error: class A is inaccessible | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | olchansk |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-10-18 21:38:31 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
olchansk
2001-10-18 21:38:27 UTC
g++ 3.0 and 3.1 behave the same, and no, this is not a compiler bug. The inheritance brings A into class C scope as private. If you want to access A in C, you should use ::A instead (provided it is in the global namespace, otherwise the_namespace::A). |