[Ada] Additional error checking on index constraints with fixed-lower-bound ranges
Pierre-Marie de Rodat
Fri Jun 18 08:38:27 GMT 2021
Error checks are added to disallow index constraints given with a
mixture of constrained and fixed-lower-bound ranges, and also to
disallow an index constraint with a fixed-lower-bound index applied to a
type or subtype with fixed-lower-bound indexes.
Tested on x86_64-pc-linux-gnu, committed on trunk
* sem_ch3.adb (Constrain_Array): Add error checking for
fixed-lower-bound and constrained index ranges applied
inappropriately on subtypes of unconstrained and
fixed-lower-bound array types.
(Constrain_Index): Correct and refine comment related to
fixed-lower-bound index ranges.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2750 bytes
Desc: not available
More information about the Gcc-patches