[cxx-abi-dev] minor erratum: ill-formed example in 2.6.2
John McCall
rjmccall at apple.com
Mon Jul 27 18:25:14 UTC 2015
> On Jul 27, 2015, at 12:19 AM, Richard Smith <richardsmith at google.com> wrote:
>
> Section 2.6.2 of the ABI contains this example (irrelevant parts removed):
>
> class V2 /*...*/ { /*...*/ };
> class V3 { /*...*/ };
> class C2 : public virtual V3, virtual V2 { /*...*/ };
> class D : /*...*/ public C2 /*...*/ { /*...*/ };
>
> Note that the V2 base class of C2 is private, and the V2 base class of D is inaccessible. Therefore the program would be ill-formed if it created an instance of D, by DR 7.
>
> Suggest adding the (presumably) accidentally omitted "public" access specifier for the V2 base specifier.
Thanks, fixed.
John.
More information about the cxx-abi-dev
mailing list