------- Comment #6 from ayers at gcc dot gnu dot org 2009-03-14 17:11 ------- Created an attachment (id=17465) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17465&action=view) patch for build_conditional_expr
This patch for build_conditional_expr is modeled after build_binary_op in that it skips the diagnostic if the objc_compare_types verifies that the types are compatible. If the maintainers wish, I can follow up with a little optimization for the C front end for both build_conditional_expr and build_binary_op in that objc_compare_types will only be called for c_dialect_objc. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27377