FPC emits wrong line info (special opcode before set file name) №2 (not sure)

FPC🤖Trunk

&

FPC🤖3.2.2

i40874.lpr:

program i40874;
{$mode objfpc}
uses
  ugen;

type
  generic GClass2<T> = class
    procedure proc;
  end;
  TClass2 = specialize GClass2<TObject>;

procedure GClass2.proc;
type
  TClass1 = specialize GClass1<byte>;
begin
  T.proc(0);
end;

begin
end.

ugen.pas:

unit ugen;
{$mode objfpc}
interface
type
  generic GClass1<T> = class
  end;
implementation
end.

Compile:

C:\fpclaztrunk\fpc\bin\x86_64-win64\fpc.exe -n -FuC:\fpclaztrunk\fpc\units\x86_64-win64\rtl i40874.lpr

Output:

ugen.pas(16,5) Error: Identifier idents no member "proc" // <---- incorrect information here

ugen.pas(16,5) <- incorrectly!

Probably related to this: #40866

Edited by alligator