]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c-common.c
re PR c++/68362 (ICE: tree check: expected integer_cst, have nop_expr in get_val...
authorMarek Polacek <polacek@redhat.com>
Mon, 16 Nov 2015 20:16:57 +0000 (20:16 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 16 Nov 2015 20:16:57 +0000 (20:16 +0000)
commit0f62c7a0cc5b2da41f98c338185dbf036ad468ff
tree30eed2e1b014356c564af5f4e3c271358eb2fabc
parent3e6ab828444aad891d84bf68ba02581fba28f80b
re PR c++/68362 (ICE: tree check: expected integer_cst, have nop_expr in get_val, at tree.h:5157)

PR c++/68362
* c-common.c (check_case_bounds): Fold low and high cases.

* g++.dg/delayedfold/switch-1.C: New test.

From-SVN: r230435
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/delayedfold/switch-1.C [new file with mode: 0644]