aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa.cc
diff options
context:
space:
mode:
authorViljar Indus <indus@adacore.com>2024-09-11 11:26:05 +0300
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-10-08 10:37:14 +0200
commit48fd89dc4a49cf07dbde6d26c5eb39c97a0490de (patch)
tree17d9da260c4acb5649530156193e4a89c14fe420 /gcc/tree-ssa.cc
parent5339c2165f24f3523fe822c493bf9b1559b5460e (diff)
downloadgcc-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