-Wabi is misdesigned (answers the wrong question)

law@redhat.com law@redhat.com
Fri Oct 24 21:03:00 GMT 2003


In message <1067022652.31435.63.camel@doubledemon.codesourcery.com>, Mark Mitch
ell writes:
 >The other problem is that it's not clear to me that this approach gives
 >you the completely right answer either.  It tells you when something is
 >different -- but not when a chance will result in some derived class
 >being different.  There are actually a fair number of places where 3.2
 >would do the same thing with the base class -- but some follow-on
 >derived class would differ.
That's been a concern as well -- deriving classes from something in our
headers.  The "dump the offsets" idea works great for internal consistency,
but doesn't help when external code derives classes.

[ Though presumably you could run the tester on the external code as well :-) ]



Jeff



More information about the Gcc mailing list