[Ada] Fix spurious error on checking of null Abstract_State
Pierre-Marie de Rodat
derodat@adacore.com
Mon May 25 15:04:26 GMT 2020
A declaration of an object inside a declare block of elaboration code
should not count as hidden state of the package. Nor should declarations
inside a task or an entry. Now fixed.
Tested on x86_64-pc-linux-gnu, committed on trunk
2020-05-25 Yannick Moy <moy@adacore.com>
gcc/ada/
* sem_util.adb (Check_No_Hidden_State): Stop propagation at
first block/task/entry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 876 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200525/5f10958b/attachment-0001.bin>
More information about the Gcc-patches
mailing list