sem_attr.adb (Eval_Attribute): The code was assuming that X'Enum_Rep...
authorBob Duff <duff@adacore.com>
Mon, 4 Jul 2016 12:30:44 +0000 (12:30 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 4 Jul 2016 12:30:44 +0000 (14:30 +0200)
commitf3e0f7c3c189b07f56e8758ab5174bd2820d7ea5
treea592f2515fda7b4c960e76213d0fe3682e6aeaeb
parentaceb8afe14b10882ca094b24d7b0467a13dfeea7
sem_attr.adb (Eval_Attribute): The code was assuming that X'Enum_Rep...

2016-07-04  Bob Duff  <duff@adacore.com>

* sem_attr.adb (Eval_Attribute): The code was assuming
that X'Enum_Rep, where X denotes a constant, can be constant
folded. Fix it so it makes that assumption only when X denotes
a STATIC constant.

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