On Feb 21, 2026 at 12:19:10 AM, Martin Frb via fpc-devel <
[email protected]> wrote:

> E.g. currently
>
> procedure foo;
> var SeenByBar: byte;
>    procedure Bar;
>    begin {} end;
> var NOT_SeenByBar: byte;
> begin {} end;
>
> FPC currently does not include the info that the 2nd var is not in scope
> for Bar. There would afaik be several ways. So not a Dwarf problem.
>

Oh yes not having the captured variables for nested procedures is VERY
annoying and wastes lots of time. That's probably the biggest problem I
have but I don't think that has anything to do with DWARF, just the
compiler never implemented it.
_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to