[Ada] Compiler crash on named association in return aggregate
authorJustin Squirek <squirek@adacore.com>
Fri, 16 Oct 2020 20:49:58 +0000 (16:49 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 26 Nov 2020 08:39:37 +0000 (03:39 -0500)
commit1e00c00d8a74a5f7dc8583aeb146f21e13b252ab
treea3f2e1055721596c090ba466308f0835aa46ccdc
parent8593037b17ddbdad375954e59838e6f4083f44ba
[Ada] Compiler crash on named association in return aggregate

gcc/ada/

* sem_ch6.adb (First_Selector): Utility routine to return the
first selector or choice in an association.
(Check_Return_Construct_Accessibility): Modify loop to handle
named associations when iterating through discriminants.
gcc/ada/sem_ch6.adb