[Ada] Spurious error with component of unchecked_union type
authorEd Schonberg <schonberg@adacore.com>
Tue, 2 Feb 2021 15:13:52 +0000 (10:13 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 7 May 2021 09:29:05 +0000 (05:29 -0400)
commit476ed6bf66ab20e22ae4b3da0fd7fd94753f2334
tree0101c05f64ae76d5393a6f7ab3188fd3896c6f8d
parenta3e2584e85d91d0ab076c3f603bc0179921dbd82
[Ada] Spurious error with component of unchecked_union type

gcc/ada/

* exp_ch4.adb (Unconstrained_UU_In_Component_Declaration): A
component declaration whose subtype indication is an entity name
without an explicit constraint is an Unchecked_Union type only
if the entity has an unconstrained nominal subtype (record type
or private type) whose parent type is an Unchecked_Union.
gcc/ada/exp_ch4.adb