https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64077

--- Comment #5 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Andrew Dixie from comment #4)
> If the 'accessible' in p5 includes friendships relationships, then the
> dynamic_cast should succeed.

Yes, friendship relations need to be considered when accessibility is tested.

> If the 'accessible' in p5 requires a public base (like is required by p8),
> then the dynamic cast should fail (or be ill-formed).
> I think the wording of the standard clearly specifies succeed.

Yes.

Reply via email to