This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20397] g++ rejects valid code with 'is inaccessible' error
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2005 03:33:52 -0000
- Subject: [Bug c++/20397] g++ rejects valid code with 'is inaccessible' error
- References: <20050309212435.20397.matthew.whitney@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-10 03:33 -------
Huh? unused paramaters are still need to be able to compile and be accessible.
If that compiler handles this code, well that compiler has a bug in it.
ICC gives the following warning though (but note it says allowed for compatiblity):
t.cc(9): warning #525: type "A::A" is an inaccessible type (allowed for compatibility)
The point is A is inaccessible in the class C because it is interjected into B. If you want to use the global
class A, use ::A and that works.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20397