[Ada] Warn on slices of the form A (subtype) for all objects
authorPiotr Trojanek <trojanek@adacore.com>
Wed, 15 Apr 2020 20:53:54 +0000 (22:53 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 26 Nov 2020 08:39:51 +0000 (03:39 -0500)
commit81c629f8f12765f9b1bf29ecfef7f32f5189723c
treef7776e4f857eef6c97b57ccdc2c04e26082cacc1
parent433b2e91f9ea5ebc1513abd9a749dbde832a7634
[Ada] Warn on slices of the form A (subtype) for all objects

gcc/ada/

* sem_eval.adb (Eval_Slice): Emit warning not just for
constants, but for any objects.
gcc/ada/sem_eval.adb