https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125044
--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Eric Botcazou <[email protected]>: https://gcc.gnu.org/g:cfb62a45e3f20e66b5b3f39c3ad349d53a1b01f2 commit r14-12557-gcfb62a45e3f20e66b5b3f39c3ad349d53a1b01f2 Author: Eric Botcazou <[email protected]> Date: Thu Apr 30 09:27:06 2026 +0200 Ada: Fix spurious error on primitive function of tagged task type This comes from an internal confusion about the subtype of the controlling result. This has probably never worked, but the fix is trivial. gcc/ada/ PR ada/125044 * sem_disp.adb (Check_Controlling_Formals): Apply the same massaging to the result subtype as to the parameter subtypes. gcc/testsuite/ * gnat.dg/task6.ads, gnat.dg/task6.adb: New test.
