[Ada] Bit_Order cannot be defined for record extensions

Pierre-Marie de Rodat derodat@adacore.com
Mon Jul 16 14:14:00 GMT 2018


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

Tested on x86_64-pc-linux-gnu, committed on trunk

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 986 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180716/361de8e1/attachment.bin>


More information about the Gcc-patches mailing list