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

2010-03-03 Thread bangerth at gmail dot com
--- Comment #8 from bangerth at gmail dot com 2010-03-03 19:40 --- (In reply to comment #7) > The use of a base class ( class B : A ) is not a declaration of A. > Thus the base class ( class A ) is visible and not private. > > Reopen the bug and fix it. Andrew was right: the name 'A' i

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

2010-03-03 Thread s dot franke at bebbosoft dot de
--- Comment #7 from s dot franke at bebbosoft dot de 2010-03-03 19:26 --- The C++ Standard says: 3.4 Name lookup The name lookup rules apply uniformly to all names (including typedef-names (7.1.3), namespace-names (7.3) and class-names (9.1)) wherever the grammar allows such names in t

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

2005-03-10 Thread matthew dot whitney at gmail dot com
--- Additional Comments From matthew dot whitney at gmail dot com 2005-03-10 14:10 --- Thanks for the explanation - I understand what's happening now. Next time I'll take it to comp.lang.c++.moderated before bothering you guys. Anyway sorry to have wasted your time. -- http://gcc.gnu

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

2005-03-09 Thread giovannibajo at libero dot it
--- Additional Comments From giovannibajo at libero dot it 2005-03-10 06:56 --- Just ask on comp.lang.c++.moderated for more information. We help with C++ issues a little, but we cannot explaint things in detail to every C++ developer in the world. Ah, and when Andrew said "interjecte

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

2005-03-09 Thread drow at false dot org
--- Additional Comments From drow at false dot org 2005-03-10 03:45 --- Subject: Re: g++ rejects valid code with 'is inaccessible' error On Thu, Mar 10, 2005 at 02:25:03AM -, matthew dot whitney at gmail dot com wrote: > Now it compiles fine. Before this is closed again I'd like to

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

2005-03-09 Thread pinskia 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 s

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

2005-03-09 Thread matthew dot whitney at gmail dot com
--- Additional Comments From matthew dot whitney at gmail dot com 2005-03-10 02:25 --- Could someone take another look at this? I don't mean to waste your time, but I don't understand the explanation given. I know of another compiler that handles the example code without any problems. I

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

2005-03-09 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-09 21:49 --- No gcc is correct because the type A is interjected into B. and is private as the base class is private. -- What|Removed |Added -