aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-01-22 10:56:05 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-10 08:19:23 +0000
commit6798cad793d9581936f2de76c85a22a5449d7358 (patch)
treebf61448089bccbb293494a73ef15292d37044912 /gcc/fold-const.cc
parent53f2aaf0b3c322e65d014ad2203a706bc8b26b8f (diff)
downloadgcc-6798cad793d9581936f2de76c85a22a5449d7358.zip
gcc-6798cad793d9581936f2de76c85a22a5449d7358.tar.gz
gcc-6798cad793d9581936f2de76c85a22a5449d7358.tar.bz2
[Ada] Fix oversight for case expression in Eval_Integer_Literal
The intent of the entry test is to treat conditional expressions, that is to say if-expression and case-expression, alike and to require that a second condition be true for them. But an N_Case_Expression_Alternative is not an N_Subexpr so this second condition was short-circuited for this node. gcc/ada/ * sem_eval.adb (Eval_Integer_Literal): Fix oversight in entry test.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions