]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Remove couple of irregular calls to Resolve_Aggr_Expr
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 28 Oct 2024 06:42:54 +0000 (07:42 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 12 Nov 2024 13:00:52 +0000 (14:00 +0100)
commit1d602710a2feb91b66cb09d2d18bdbe7d429dee9
treedc6b8c635260c0d6b950ac7adfda69595326ce31
parentf0a2e57d0525b3372d5de543c77c5e1d7f830c69
ada: Remove couple of irregular calls to Resolve_Aggr_Expr

The function is supposed to be passed an expression, but it is passed the
enclosing N_Component_Association node in a couple of cases, only to give
an error that can as well be given in the caller, at the cost of bypasses
to disable most of its processing.

gcc/ada/ChangeLog:

* sem_aggr.adb (Resolve_Array_Aggregate): In the case of an others
choice with a box, do not call Resolve_Aggr_Exp and give the error
for a multidimensional array directly.
(Resolve_Aggr_Expr): Remove bypasses for above case.
gcc/ada/sem_aggr.adb