Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ada: Missing error on positional container aggregates for types with …
…Add_Named The compiler fails to reject a container aggregate written using positional notation when the container type specifies an Add_Named operation in its Aggregate aspect. Container aggregates for such types must be written using named associations. The compiler ignores the positional associations and produces an empty aggregate object. An error check is added to catch such illegal container aggregates. gcc/ada/ * sem_aggr.adb (Resolve_Container_Aggregate): In the Add_Named case, issue an error if the container aggregate is written as a positional aggregate, since such an aggregate must have named associations. Tested on x86_64-pc-linux-gnu, committed on master.
- Loading branch information