This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]