Fix crash occurring when attribute System'To_Address is used without
a WITH clause for package System.
gcc/ada/
* sem_warn.adb (Check_Infinite_Loop_Warning): Don't look at the type of
actual parameter when it has no type at all, e.g. because the entire
subprogram call is illegal.
begin
Actual := First_Actual (N);
while Present (Actual) loop
- if Is_Access_Subprogram_Type (Etype (Actual)) then
+ if No (Etype (Actual))
+ or else Is_Access_Subprogram_Type (Etype (Actual))
+ then
return Abandon;
else
Next_Actual (Actual);