mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-14 00:59:30 +02:00
* don't crash on inclusion of fpmake.pp
git-svn-id: trunk@24273 -
This commit is contained in:
parent
f3ef5a1f9c
commit
b27e03346b
@ -1171,7 +1171,7 @@ var
|
||||
Module: TPasElement;
|
||||
begin
|
||||
Result := FindInModule(CurModule, AName);
|
||||
if not Assigned(Result) then
|
||||
if not Assigned(Result) and assigned (CurModule.InterfaceSection) then
|
||||
for i := CurModule.InterfaceSection.UsesList.Count - 1 downto 0 do
|
||||
begin
|
||||
Module := TPasElement(CurModule.InterfaceSection.UsesList[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user