[Ada] Fix spurious error on implicit dereference for private type
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 3 Apr 2020 21:34:07 +0000 (23:34 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 16 Jun 2020 13:07:12 +0000 (09:07 -0400)
commit7ba5e7464b6c75945624dceb5e4193b36b9aeaad
treeb8902c9a11cd83edafaf22d7235ba84df325252d
parentdae4f504c65a1c8af7db352618438910a4c69096
[Ada] Fix spurious error on implicit dereference for private type

2020-06-16  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

* sem_ch4.adb (Transform_Object_Operation): Document that it
may be partially destructive for the parent of the node.
(Try_Object_Operation): Undo the changes made above on failure.
gcc/ada/sem_ch4.adb