[Ada] Bit_Order cannot be defined for record extensions
authorJavier Miranda <miranda@adacore.com>
Mon, 16 Jul 2018 14:10:53 +0000 (14:10 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 16 Jul 2018 14:10:53 +0000 (14:10 +0000)
commit2588c36c2ea1f62176b07268fa7a8e0cedeb4fbf
tree9e12ebbb5565606f7e29cdfe3ba230ebfafda2e0
parentd7925fd3cda9be7ad30d6fe658142500e36c5b39
[Ada] Bit_Order cannot be defined for record extensions

This patch allows the compiler to report an error on Bit_Order when
defined for a record extension.

2018-07-16  Javier Miranda  <miranda@adacore.com>

gcc/ada/

* sem_ch13.adb (Analyze_Attribute_Definition_Clause): Report an error
on Bit_Order when defined for a record extension.

gcc/testsuite/

* gnat.dg/bit_order1.adb: New testcase.

From-SVN: r262712
gcc/ada/ChangeLog
gcc/ada/sem_ch13.adb
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/bit_order1.adb [new file with mode: 0644]