https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65556
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Fri Mar 27 16:46:44 2015 New Revision: 221738 URL: https://gcc.gnu.org/viewcvs?rev=221738&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/c-c++-common/pr65556.c Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog