https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106169
Bug ID: 106169
Summary: Error with iterated element association in aggregate.
Product: gcc
Version: 12.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: p.p11 at orange dot fr
Target Milestone: ---
Created attachment 53240
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53240&action=edit
Full source code
Following the example section of RM Ada 2022 ยง 4.3.5 Container Aggregate, the
iterated element association aggregate is line 32:
32. M := [for P of Table use P.Key => P.Value.all];
GNAT 12.1.0 issues the following error:
% gcc -c -gnatX 2022/test_20220702_iter_agg.adb
test_20220702_iter_agg.adb:32:39: error: invalid prefix in selected component
"Value"