[Ada] Crash on Descriptor_Size attribute
authorBob Duff <duff@adacore.com>
Thu, 12 Dec 2019 10:02:27 +0000 (10:02 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Thu, 12 Dec 2019 10:02:27 +0000 (10:02 +0000)
commit5d3983bca523f337333cf6f749d6489014264572
treea09ae129b6d08211ec36b6e7fd8821bccfe9c6b6
parentc2f3e1a3e369fe549fa76e9821d2e17bc3d55dc7
[Ada] Crash on Descriptor_Size attribute

2019-12-12  Bob Duff  <duff@adacore.com>

gcc/ada/

* sem_attr.adb (Eval_Attribute): Never mark T'Descriptor_Size as
static, even if T is a static subtype, because otherwise we will
request the value of the attribute, which will crash because we
have not evaluated it.

From-SVN: r279287
gcc/ada/ChangeLog
gcc/ada/sem_attr.adb