]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix bogus error for pragma No_Component_Reordering on record type
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 22 Apr 2025 09:42:00 +0000 (11:42 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 30 Jun 2025 17:17:24 +0000 (19:17 +0200)
commit411c1eeadfbe99efa203097c93fa08256bc72f85
treed2df158bf1ea37c4d23d65159ab78b1e9c346ce1
parent29042b6d01f497ce4f98398e8ed0435b078a6936
ada: Fix bogus error for pragma No_Component_Reordering on record type

This happens when the record type has an incomplete declaration before its
full declaration and is fixed by calling Find_Type appropriately.

gcc/ada/ChangeLog:

* sem_prag.adb (Analyze_Pragma) <Pragma_No_Component_Reordering>:
Call Find_Type on the first argument of the pragma.
gcc/ada/sem_prag.adb