PR c++/65556
commit6e08defbf8aa4bce274e617d823ecd2320b776a1
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Mar 2015 16:46:44 +0000 (27 16:46 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Mar 2015 16:46:44 +0000 (27 16:46 +0000)
treecfea32e2ad3b2887f553f3e549bb6d48275c8d67
parentf3e0be564cdbf3b60e7cc9963269f3d86c0ef796
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221738 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr65556.c [new file with mode: 0644]