This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20397] g++ rejects valid code with 'is inaccessible' error


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]