[Ada] Ignore subprogram address in ownership checking
Ownership checking done as in GNATprove should ignore address of subprograms, as it applies only on objects. Now fixed. There is no impact on compilation. 2019-08-21 Yannick Moy <moy@adacore.com> gcc/ada/ * sem_spark.adb (Process_Path): Do nothing on address of subprogram. From-SVN: r274779
This commit is contained in:
parent
78170c8ea1
commit
570d0072bd
@ -1,3 +1,8 @@
|
||||
2019-08-21 Yannick Moy <moy@adacore.com>
|
||||
|
||||
* sem_spark.adb (Process_Path): Do nothing on address of
|
||||
subprogram.
|
||||
|
||||
2019-08-21 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
* exp_util.adb (Finalize_Address): Deal consistently with
|
||||
|
@ -5110,6 +5110,7 @@ package body Sem_SPARK is
|
||||
-- in an object.
|
||||
|
||||
if not Present (Root)
|
||||
or else not Is_Object (Root)
|
||||
or else not Is_Deep (Etype (Root))
|
||||
then
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user