Message ID | 20170906100611.GA30595@adacore.com |
---|---|
State | New |
Headers | show |
Series | [Ada] Crash on generic subprogram with aspect No_Return. | expand |
Index: freeze.adb =================================================================== --- freeze.adb (revision 251765) +++ freeze.adb (working copy) @@ -5489,6 +5489,13 @@ then Explode_Initialization_Compound_Statement (E); end if; + + -- Do not generate a freeze node for a generic unit. + + if Is_Generic_Unit (E) then + Result := No_List; + goto Leave; + end if; end if; -- Case of a type or subtype being frozen