[Bug c++/39905] static downcast through protectedly inherited base class rejected

2009-04-25 Thread fang at csl dot cornell dot edu
--- Comment #2 from fang at csl dot cornell dot edu 2009-04-26 00:52 --- Subject: Re: static downcast through protectedly inherited base class rejected > --- Comment #1 from pinskia at gcc dot gnu dot org 2009-04-26 00:42 > --- > Comment #1 in Bug 12265, explains exactly wh

[Bug c++/39905] static downcast through protectedly inherited base class rejected

2009-04-25 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-04-26 00:42 --- Comment #1 in Bug 12265, explains exactly why this code is invalid. Protected base classes are non accessible in other clases besides in derived and derived classes of derived. -- pinskia at gcc dot gnu dot org