gcc/ada/
* sem_ch4.adb (Analyze_Selected_Component): Remove explicit call
to Set_Raises_Constraint_Error on statically missing component.
* sem_eval.adb (Eval_Arithmetic_Op): Likewise for static
divisions by integer and real zeros.
* sem_util.adb (Apply_Compile_Time_Constraint_Error): Call
Set_Raises_Constraint_Error before exiting early in GNATprove
mode.
(N, "component not present in }??",
CE_Discriminant_Check_Failed,
Ent => Prefix_Type);
-
- Set_Raises_Constraint_Error (N);
return;
end if;
Apply_Compile_Time_Constraint_Error
(N, "division by zero", CE_Divide_By_Zero,
Warn => not Stat or SPARK_Mode = On);
- Set_Raises_Constraint_Error (N);
return;
-- Otherwise we can do the division
if UR_Is_Zero (Right_Real) then
Apply_Compile_Time_Constraint_Error
(N, "division by zero", CE_Divide_By_Zero);
- Set_Raises_Constraint_Error (N);
return;
end if;
-- generate a check message.
if GNATprove_Mode then
+ Set_Raises_Constraint_Error (N);
return;
end if;