re PR c++/83553 (compiler removes body of the for-loop, although there is a case label inside)
PR c++/83553 * fold-const.c (struct contains_label_data): New type. (contains_label_1): Return non-NULL even for CASE_LABEL_EXPR, unless inside of a SWITCH_BODY seen during the walk. (contains_label_p): Use walk_tree instead of walk_tree_without_duplicates, prepare data for contains_label_1 and provide own pset. * c-c++-common/torture/pr83553.c: New test. From-SVN: r255987
Showing
gcc/testsuite/c-c++-common/torture/pr83553.c
0 → 100644
Please
register
or
sign in
to comment