aboutsummaryrefslogtreecommitdiff
path: root/libcpp/macro.c
diff options
context:
space:
mode:
authorEd Schonberg <schonberg@adacore.com>2020-07-10 11:13:57 -0400
committerPierre-Marie de Rodat <derodat@adacore.com>2020-10-19 05:53:41 -0400
commitc0bab60bb9d6f56eedc95f77af3d1057b7fff3bb (patch)
treedab3252a76f14c20c02575c14109ad6d8e477610 /libcpp/macro.c
parent86b3d0d55f947d8c5328a25b113bb52ae3ac89fa (diff)
downloadgcc-c0bab60bb9d6f56eedc95f77af3d1057b7fff3bb.zip
gcc-c0bab60bb9d6f56eedc95f77af3d1057b7fff3bb.tar.gz
gcc-c0bab60bb9d6f56eedc95f77af3d1057b7fff3bb.tar.bz2
[Ada] Ada_2020: Implement Key_Expression for named container aggregates
gcc/ada/ * par-ch4.adb: (P_Aggregate_Or_Paren_Expr): Recognize Iterated_Element_Component. (P_Iterated_Component_Association): Rebuild node as an Iterated_ Element_Association when Key_Expression is present, and attach either the Loop_Parameter_Specification or the Iterator_Specification to the new node. * sem_aggr.adb: (Resolve_Container_Aggregate): Resolve_Iterated_Association handles bota Iterated_Component_ and Iterated_Element_Associations, in which case it analyzes and resoles the orresponding Key_Expression. * exp_aggr.adb (Expand_Iterated_Component): If a Key_Expression is present, use it as the required parameter in the call to the insertion routine for the destination container aggregate. Call this routine for both kinds of Iterated_Associations.
Diffstat (limited to 'libcpp/macro.c')
0 files changed, 0 insertions, 0 deletions