diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2021-10-14 15:44:48 +0200 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-10-20 10:17:05 +0000 |
commit | 723d09e8895733f065200fa1b54c84243cf96f69 (patch) | |
tree | 518185b118d6a67786c1a7b369ae3653b5647e54 /gcc/tree-ssa-threadupdate.c | |
parent | f6f8b3f95e55084b59ecc8fbe0f0cfd485d58c39 (diff) | |
download | gcc-723d09e8895733f065200fa1b54c84243cf96f69.zip gcc-723d09e8895733f065200fa1b54c84243cf96f69.tar.gz gcc-723d09e8895733f065200fa1b54c84243cf96f69.tar.bz2 |
[Ada] Fix problematic conversion of real literal in static context
gcc/ada/
* sem_eval.adb (Eval_Type_Conversion): If the target subtype is
a static floating-point subtype and the result is a real literal,
consider its machine-rounded value to raise Constraint_Error.
(Test_In_Range): Turn local variables into constants.
Diffstat (limited to 'gcc/tree-ssa-threadupdate.c')
0 files changed, 0 insertions, 0 deletions