[Ada] Guard against illegal items in Global but not Depends
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 25 Oct 2021 14:33:24 +0000 (16:33 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 9 Nov 2021 09:44:46 +0000 (09:44 +0000)
commit9c8bb4d68240c2449c8ec9532f683cdad5bbbdbd
tree7b3da36fa9604084e3d7945debdf0e7e871bfc87
parent74e514af79c4e01a6ff7fab4b7c7a79cad058c3c
[Ada] Guard against illegal items in Global but not Depends

gcc/ada/

* sem_prag.adb (Check_Usage): Guard against calling Usage_Error
with illegal Item_Id. The intention to do this was already
described in the comment but not implemented.
gcc/ada/sem_prag.adb