]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix check for elaboration order on subprogram body stubs
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 16 Jun 2025 14:13:03 +0000 (16:13 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 3 Jul 2025 08:16:29 +0000 (10:16 +0200)
commit251dab8bc9a596f094149e256f0d216cc5b1a60a
treee99a202cc0f2b23a59b3353fb73a2a2bb3b3d110
parentaada6d75fe6392475c2abc02f5725690edc420cc
ada: Fix check for elaboration order on subprogram body stubs

Fix an assertion failure occurring when elaboration checks were applied to
subprogram with a separate body.

gcc/ada/ChangeLog:

* sem_elab.adb (Check_Overriding_Primitive): Find early call region
of the subprogram body declaration, not of the subprogram body stub.
gcc/ada/sem_elab.adb