re PR middle-end/80163 (ICE on hopefully valid code)
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 12 Apr 2017 13:57:45 +0000 (15:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 12 Apr 2017 13:57:45 +0000 (15:57 +0200)
commit76873758402927ca5fca67abc018eab862fd1b96
tree3ee9c7544c16c0adf77cb08020ba136611a605cf
parent940c9a7c2cf3bbbf43b0602c9283bf7579cf05ec
re PR middle-end/80163 (ICE on hopefully valid code)

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.

From-SVN: r246876
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr80163.c [new file with mode: 0644]