diff options
author | Viljar Indus <indus@adacore.com> | 2024-09-11 11:26:05 +0300 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-10-08 10:37:14 +0200 |
commit | 48fd89dc4a49cf07dbde6d26c5eb39c97a0490de (patch) | |
tree | 17d9da260c4acb5649530156193e4a89c14fe420 /gcc/tree-ssa.cc | |
parent | 5339c2165f24f3523fe822c493bf9b1559b5460e (diff) | |
download | gcc-48fd89dc4a49cf07dbde6d26c5eb39c97a0490de.zip gcc-48fd89dc4a49cf07dbde6d26c5eb39c97a0490de.tar.gz gcc-48fd89dc4a49cf07dbde6d26c5eb39c97a0490de.tar.bz2 |
ada: Reject mixed container aggregates
A container aggregate can either be empty, contain only
positional elements or named element associations. Reject the
scenario where the latter two are both used.
gcc/ada/ChangeLog:
* diagnostics-constructors.adb
(Make_Mixed_Container_Aggregate_Error): New function for the error
message
(Record_Mixed_Container_Aggregate_Error): New function for the
error message.
* diagnostics-constructors.ads: Likewise.
* diagnostics-repository.ads: register new diagnostics id
* diagnostics.ads: add new diagnostics id
* errout.adb (First_And_Last_Node): Detect the span for component
associations.
* sem_aggr.adb (Resolve_Container_Aggregate): reject container
aggregates that have both named and positional elements.
Diffstat (limited to 'gcc/tree-ssa.cc')
0 files changed, 0 insertions, 0 deletions