public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1256] ada: Fix late extra formals creation
@ 2023-05-26  7:35 Marc Poulhi?s
  0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2023-05-26  7:35 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:f4e907d5ee52fffe7c6fb1256e65eb39c9313379

commit r14-1256-gf4e907d5ee52fffe7c6fb1256e65eb39c9313379
Author: Ronan Desplanques <desplanques@adacore.com>
Date:   Tue Mar 14 10:01:06 2023 +0100

    ada: Fix late extra formals creation
    
    Before this patch, in some situations, a subprogram call could be
    expanded before the extra formals for the subprogram were created.
    
    This patch fixes the problem in those situations.
    
    gcc/ada/
    
            * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Create extra formals
            in more situations.

Diff:
---
 gcc/ada/sem_ch6.adb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/ada/sem_ch6.adb b/gcc/ada/sem_ch6.adb
index 6df1c8dedd3..c58a5488cd2 100644
--- a/gcc/ada/sem_ch6.adb
+++ b/gcc/ada/sem_ch6.adb
@@ -3907,6 +3907,7 @@ package body Sem_Ch6 is
            and then Serious_Errors_Detected = 0
          then
             Set_Has_Delayed_Freeze (Spec_Id);
+            Create_Extra_Formals (Spec_Id);
             Freeze_Before (N, Spec_Id);
          end if;
       end if;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-05-26  7:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-26  7:35 [gcc r14-1256] ada: Fix late extra formals creation Marc Poulhi?s

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).