[cxx-abi-dev] minor erratum: ill-formed example in 2.6.2
Richard Smith
richardsmith at google.com
Mon Jul 27 07:19:45 UTC 2015
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20150727/15db00d5/attachment.html>
More information about the cxx-abi-dev
mailing list