re PR c/79515 (ICE: tree check: expected class 'type', have 'exceptional' (error_mark...
authorMarek Polacek <polacek@redhat.com>
Wed, 15 Feb 2017 16:14:19 +0000 (16:14 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 15 Feb 2017 16:14:19 +0000 (16:14 +0000)
commitc7545f1cb335004bed97202238f03e1d73832670
treee02ca76bb1063d3417cf2886eb53530f447a7d7c
parent1114b39cdfd62e7dd4d61b6acb5b70ffcc4ed910
re PR c/79515 (ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in do_warn_double_promotion, at c-family/c-warn.c:1867)

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.

From-SVN: r245485
gcc/c-family/ChangeLog
gcc/c-family/c-warn.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/dfp/pr79515.c [new file with mode: 0644]