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/59891] [4.7/4.8/4.9 Regression] ICE on invalid code (with div-by-zero) at all optimization levels on x86_64-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59891

--- Comment #10 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Jan 22 22:15:12 2014
New Revision: 206944

URL: http://gcc.gnu.org/viewcvs?rev=206944&root=gcc&view=rev
Log:
    PR c/59891
c/
    * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
    of remove_c_maybe_const_expr on op1 and op2.
testsuite/
    * gcc.dg/torture/pr59891.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr59891.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.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]