[Ada] Missing detection of unused with_clause
authorArnaud Charlet <charlet@adacore.com>
Fri, 28 Aug 2020 12:20:44 +0000 (08:20 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 23 Oct 2020 08:24:50 +0000 (04:24 -0400)
commit0e3ccc6a04100b9998920e82381bf566fc654b8d
tree80f0a8d46a991f0a42bcb9d11a7b5d611a7097fc
parentc875250d42d16abb1c638a1b340ea5dac5c9a479
[Ada] Missing detection of unused with_clause

gcc/ada/

* sem_ch4.adb (Complete_Object_Operation): Only mark entities
referenced if we are compiling the extended main unit.
* sem_attr.adb (Analyze_Attribute [Attribute_Tag]): Record a
reference on the type and its scope.
gcc/ada/sem_attr.adb
gcc/ada/sem_ch4.adb