fcl-passrc: resolver: fixed unit without implementation

This commit is contained in:
mattias 2020-12-11 17:33:13 +00:00
parent be81221a1d
commit 648a86be7e
2 changed files with 3 additions and 1 deletions

View File

@ -5830,7 +5830,8 @@ begin
begin
// unit
FinishSection(CurModule.InterfaceSection);
FinishSection(CurModule.ImplementationSection);
if CurModule.ImplementationSection<>nil then
FinishSection(CurModule.ImplementationSection);
if CurModule.FinalizationSection<>nil then
// finalization section finished -> resolve
ResolveImplBlock(CurModule.FinalizationSection);

View File

@ -2680,6 +2680,7 @@ begin
{$IFDEF VerbosePasAnalyzer}
writeln('TPasAnalyzer.EmitSectionHints ',GetElModName(Section));
{$ENDIF}
if Section=nil then exit;
// initialization, program or library sections
aModule:=Section.GetModule;
UsesClause:=Section.UsesClause;