This is the mail archive of the gcc-bugs@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]

[Bug c/79515] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in do_warn_double_promotion, at c-family/c-warn.c:1867


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79515

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Feb 15 16:14:19 2017
New Revision: 245485

URL: https://gcc.gnu.org/viewcvs?rev=245485&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/gcc.dg/dfp/pr79515.c
Modified:
    trunk/gcc/c-family/ChangeLog
    trunk/gcc/c-family/c-warn.c
    trunk/gcc/testsuite/ChangeLog

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