[PATCH][C] Fix PR34768, wrong-code with conditional expression with function type
Ian Lance Taylor
iant@google.com
Wed Jan 16 04:16:00 GMT 2008
Richard Guenther <rguenther@suse.de> writes:
> 2008-01-13 Richard Guenther <rguenther@suse.de>
>
> PR c/34768
> * c-typeck.c (common_pointer_type): Do not merge inconsistent
> type qualifiers for function types.
>
> * gcc.c-torture/execute/pr34768-1.c: New testcase.
> * gcc.c-torture/execute/pr34768-2.c: Likewise.
This is OK unless somebody objects quickly.
Thanks.
Ian
More information about the Gcc-patches
mailing list