[Ada] Spurious warning about premature use of selected component
authorEd Schonberg <schonberg@adacore.com>
Thu, 24 Dec 2020 01:21:13 +0000 (20:21 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 3 May 2021 09:28:22 +0000 (05:28 -0400)
commit3fcdd5264de355acf01d30b7af6edd614080f1d3
tree67a01ce5e01070116727a44779419aac72a17d11
parent3ffe57d4b11ca8daab277d94c86db2b95feafa9d
[Ada] Spurious warning about premature use of selected component

gcc/ada/

* sem_warn.adb (Check_References): Do not emit warning on a
selected component when enclosing type has no discriminant and
type of component has partial initialization.
gcc/ada/sem_warn.adb