Nested procedure variable name mangling issue
Original Reporter info from Mantis: Gorelkin
-
Reporter name: Sergei Gorelkin
Original Reporter info from Mantis: Gorelkin
- Reporter name: Sergei Gorelkin
Description:
The following sample won't assemble:
{$modeswitch nestedprocvars}
procedure foo(procedure bar(x: longint)); begin end;
procedure foo(procedure baz(x: tobject)); begin end;
begin
end.
The error message is:
texc2.pp(5,1) Error: Asm: Duplicate label PPROGRAM_
$_FOO$nestedprovar
Apparently compiler treats all such parameters just as 'nestedprocvar' while they can have different signatures.
Mantis conversion info:
- Mantis ID: 27515
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 29791 (#cab98a58)
- Monitored by: » Adriaan van Os (Adriaan van Os)