]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix test for giving hint on ambiguous aggregate
authorYannick Moy <moy@adacore.com>
Fri, 3 May 2024 13:02:39 +0000 (15:02 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 13 Jun 2024 13:30:34 +0000 (15:30 +0200)
commit36c59b3a689a929e8c786cc4614fad923658b3c4
tree3931efc8c7144e919b64b4fce2551d18af5a0b68
parentdf898445c211cb417fad784d50a68bae0f20acbc
ada: Fix test for giving hint on ambiguous aggregate

In the case the type of an aggregate cannot be determined due to
an ambiguity, caused by the existence of container aggregates,
a hint can be given by GNAT. The test for giving this hint should
be the Ada language version, not the fact that extensions are allowed.
Now fixed.

There is no impact on code generation.

gcc/ada/

* sem_util.adb (Check_Ambiguous_Aggregate): Fix test.
gcc/ada/sem_util.adb