[Ada] Do not replace bounds for packed arrays that depend on discriminants
authorGhjuvan Lacambre <lacambre@adacore.com>
Mon, 6 Jul 2020 13:56:28 +0000 (15:56 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 19 Oct 2020 09:53:38 +0000 (05:53 -0400)
commit08b0a5e2002f7f43d7f5aa3b55e7c6c22ec3926d
tree451d6a17b6b4903d8286200d3c9b1668218b8e45
parentec28faefe1fed756e3a4daee73533984d569b570
[Ada] Do not replace bounds for packed arrays that depend on discriminants

gcc/ada/

* exp_attr.adb (Expand_N_Attribute_Reference): Check if type
depends on discriminant.
gcc/ada/exp_attr.adb