re PR c++/65556 (ICE: verify_gimple failed (type precision mismatch in switch statement))
authorMarek Polacek <polacek@redhat.com>
Fri, 27 Mar 2015 16:46:44 +0000 (16:46 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 27 Mar 2015 16:46:44 +0000 (16:46 +0000)
commit5964a3a67219410fffc9c108ac92b838af6c09ea
treecfea32e2ad3b2887f553f3e549bb6d48275c8d67
parent0b7dccc63e31d11c2f129e569d06cef8c33d2921
re PR c++/65556 (ICE: verify_gimple failed (type precision mismatch in switch statement))

PR c++/65556
* semantics.c (finish_switch_cond): If the unlowered type is not an
enum, use the type of the condition.

* c-c++-common/pr65556.c: New test.

From-SVN: r221738
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr65556.c [new file with mode: 0644]