This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -Wabi is misdesigned (answers the wrong question)
- From: law at redhat dot com
- To: mark at codesourcery dot com
- Cc: Richard Henderson <rth at redhat dot com>, Joe Buck <jbuck at synopsys dot com>, Michael Matz <matz at suse dot de>, gcc at gcc dot gnu dot org
- Date: Fri, 24 Oct 2003 13:26:21 -0600
- Subject: Re: -Wabi is misdesigned (answers the wrong question)
- Reply-to: law at redhat dot com
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