]> 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)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 30 Jun 2025 13:47:21 +0000 (15:47 +0200)
commit1d76aed2e92f3a064aed9ae694b813a3aa1ceffb
tree59afe86e50d58d0727d91be9df2ba3ee879739ed
parent2a37f95567b67ed24aecaf5440ca1a37ff426a05
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