C PATCH to fix ICE with -Wdouble-promotion (PR c/79515)

Bernd Schmidt bschmidt@redhat.com
Wed Feb 15 15:43:00 GMT 2017


On 02/15/2017 12:49 PM, Marek Polacek wrote:
> We ICEd on this testcase in do_warn_double_promotion because an invalid
> conversion had produced an error result type and accessing that via
> TYPE_MAIN_VARIANT crashes.  Fixed in an obvious way.
>
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
>
> 2017-02-15  Marek Polacek  <polacek@redhat.com>
>
> 	PR c/79515
> 	* c-warn.c (do_warn_double_promotion): Don't warn if an invalid
> 	conversion has occured.
>
> 	* gcc.dg/dfp/pr79515.c: New.

Ok.


Bernd



More information about the Gcc-patches mailing list