Message ID | 20210708135020.GA2465781@adacore.com |
---|---|
State | New |
Headers | show |
Series | [Ada] Restore context on failure in loading of renamed child unit | expand |
diff --git a/gcc/ada/lib-load.adb b/gcc/ada/lib-load.adb --- a/gcc/ada/lib-load.adb +++ b/gcc/ada/lib-load.adb @@ -451,8 +451,8 @@ package body Lib.Load is With_Node => With_Node); if Unump = No_Unit then - Parsing_Main_Extended_Source := Save_PMES; - return No_Unit; + Unum := No_Unit; + goto Done; end if; -- If parent is a renaming, then we use the renamed package as