This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/65556] [5 Regression] ICE: verify_gimple failed (type precision mismatch in switch statement)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]