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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Apr 12 13:57:45 2017
New Revision: 246876

URL: https://gcc.gnu.org/viewcvs?rev=246876&root=gcc&view=rev
Log:
        PR c/80163
        * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
        vs. ZERO_EXTEND based on signedness of treeop0's type rather than
        signedness of the result type.

        * gcc.dg/torture/pr80163.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/torture/pr80163.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/expr.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to