[Ada] Fix for a static Leading_Part attribute raising constraint error
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 31 Aug 2021 17:13:29 +0000 (19:13 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 4 Oct 2021 08:45:08 +0000 (08:45 +0000)
commitc0dcfc875bf5cdd594e34fde74f85f39d3091684
tree56a844dcc52bbae5e0d5f148faa64557124e7a0b
parentf729943cf65ec9d475acccc5d04d7752680e19a3
[Ada] Fix for a static Leading_Part attribute raising constraint error

gcc/ada/

* sem_attr.adb (Eval_Attribute): Evaluation of attribute
Leading_Part with illegal second parameter is now similar to
evaluation of Remainder with its second parameter being zero.
gcc/ada/sem_attr.adb