]> gcc.gnu.org Git - gcc.git/commit
ada: Apply range checks to preanalyzed aggregate expressions
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 26 Jan 2023 14:56:04 +0000 (15:56 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 16 May 2023 08:30:58 +0000 (10:30 +0200)
commitb358f011bde393ee602d756ec19a5d1ceb181a72
tree7afab14019b7f248a46f9514a5007e27389e04b4
parent4803e348aa63482085d535127689528e4925cccf
ada: Apply range checks to preanalyzed aggregate expressions

When preanalyzing expressions in GNATprove mode, e.g. Pre/Post
contracts, we apply checks, because these expressions will never
be expanded. This didn't happen for aggregate expressions, most
likely because of an oversight.

gcc/ada/

* sem_util.adb (Aggregate_Constraint_Checks): Don't exit early
when preanalysing in GNATprove mode. Now the condition is
consistent with other similar conditions in other code.
gcc/ada/sem_util.adb
This page took 0.05713 seconds and 5 git commands to generate.