[Ada] Fix oversight in Delayed_Aspect_Present predicate

Pierre-Marie de Rodat derodat@adacore.com
Wed Jul 15 13:45:18 GMT 2020


The predicate returns true only if an aspect requiring delaying like
Alignment or Address is the first aspect in the list.  The change
also contains a small consistency fix for Freeze_Object_Declaration.

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

gcc/ada/

	* sem_ch3.adb (Delayed_Aspect_Present): Fix oversight in loop.
	* freeze.adb (Freeze_Object_Declaration): Use Declaration_Node
	instead of Parent for the sake of consistency.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-diff
Size: 1340 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200715/6dc54006/attachment.bin>


More information about the Gcc-patches mailing list