[Ada] Target name is an object reference
gcc/ada/ * sem_util.adb (Is_Object_Reference): Return True on N_Target_Name.
This commit is contained in:
parent
5849018425
commit
b2410a1f02
1 changed files with 5 additions and 0 deletions
|
@ -17217,6 +17217,11 @@ package body Sem_Util is
|
|||
return Is_Rewrite_Substitution (N)
|
||||
and then Is_Object_Reference (Original_Node (N));
|
||||
|
||||
-- AI12-0125: Target name represents a constant object
|
||||
|
||||
when N_Target_Name =>
|
||||
return True;
|
||||
|
||||
when others =>
|
||||
return False;
|
||||
end case;
|
||||
|
|
Loading…
Add table
Reference in a new issue