-- instance, since in practice they tend to be dubious in these
-- cases since they can result from intended parameterization.
- if not Inside_A_Generic and then not In_Instance then
+ if Comes_From_Source (N)
+ and then not Inside_A_Generic
+ and then not In_Instance
+ then
-- Specialize msg if invalid values could make the loop
-- non-null after all.
if Null_Range then
- if Comes_From_Source (N) then
- Error_Msg_N
- ("??loop range is null, loop will not execute", DS);
- end if;
+ Error_Msg_N
+ ("??loop range is null, loop will not execute", DS);
-- Here is where the loop could execute because of
-- invalid values, so issue appropriate message.
- elsif Comes_From_Source (N) then
+ else
Error_Msg_N
- ("??loop range may be null, loop may not execute",
- DS);
+ ("??loop range may be null, loop may not execute", DS);
+
Error_Msg_N
("??can only execute if invalid values are present",
DS);