[PATCH] types_compatible_p mess 2/3 (C++)

Jason Merrill jason@redhat.com
Thu Mar 6 14:50:00 GMT 2008


Paolo Bonzini wrote:
> It seems to me that lang_hooks.types_compatible_p should never be called
> with reference types.

Which sense of "should" do you mean here?  That doing so would be 
inappropriate, or that it just doesn't ever happen?

The code this patch removes seems appropriate to me.  Perhaps we don't 
currently call this function with reference types, but unless that is 
part of an interface specification, it's better to be robust and handle 
any input.

Jason



More information about the Gcc-patches mailing list