Apply_Compile_Time_Constraint_Error
(N, "division by zero", CE_Divide_By_Zero,
+ Loc => Sloc (Right),
Warn => not Stat or SPARK_Mode = On);
return;
Apply_Compile_Time_Constraint_Error
(N, "mod with zero divisor", CE_Divide_By_Zero,
+ Loc => Sloc (Right),
Warn => not Stat or SPARK_Mode = On);
return;
Apply_Compile_Time_Constraint_Error
(N, "rem with zero divisor", CE_Divide_By_Zero,
+ Loc => Sloc (Right),
Warn => not Stat or SPARK_Mode = On);
return;
else pragma Assert (Nkind (N) = N_Op_Divide);
if UR_Is_Zero (Right_Real) then
Apply_Compile_Time_Constraint_Error
- (N, "division by zero", CE_Divide_By_Zero);
+ (N, "division by zero", CE_Divide_By_Zero,
+ Loc => Sloc (Right));
return;
end if;