[Ada] Crash on declaration with aggregate for unchecked union
authorEd Schonberg <schonberg@adacore.com>
Tue, 5 May 2020 00:05:03 +0000 (20:05 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 6 Jul 2020 11:34:56 +0000 (07:34 -0400)
commit776afaf7fef4e8d73a2376778c648f8f9a6c536b
tree5008ff868b05c7037a836992e9d268498d7db316
parente2d87663af0bfcd0563c00f958082dd7d801175d
[Ada] Crash on declaration with aggregate for unchecked union

gcc/ada/

* sem_ch3.adb (Analyze_Object_Declaration): If the type is an
Unchecked_Union, and the expression is an aggregate. complete
the analysis and resolution of the aggregate, and treat like a
regular object declaration, instead of as a renaming
declarattion.
gcc/ada/sem_ch3.adb