G++ PATCH: -Wcast-align giving false positives

Jason Merrill jason@cygnus.com
Sun Dec 12 23:17:00 GMT 1999


>>>>> Nathan Sidwell <nathan@acm.org> writes:

 > You're correct, C++ does not _require_ the pointers to point to complete
 > types, but if the pointed to type is completable, it should be
 > (and a template type be instantiated).
 > If not, we won't be able to tell whether one is a base of the
 > other.

Not in this case; char cannot be a base of anything.  Therefore, we don't
need to check whether it's a base, so we must not instantiate the template.

Jason


More information about the Gcc-patches mailing list