compiler produces unhelpful messages for asm-offset calculation caused my non-existent identifiers
Original Reporter info from Mantis: kays @KaiBurghardt
-
Reporter name: Kai Burghardt
Original Reporter info from Mantis: kays @KaiBurghardt
- Reporter name: Kai Burghardt
Description:
The compiler emits the error message
Error: Error building record offset
when it actually should say something more helpful like
Error: identifier idents no member "thingLocation"
as it would be the case for x.thingLocation := …
[i. e. Pascal assignment].
Steps to reproduce:
program offsetDemo(input, output, stdErr);
{$asmMode intel}
var
x: record
thingsLocation: pointer;
end;
begin
asm
mov x.thingLocation, rdi
end;
end.
Additional information:
This kind of spelling mistake (singular vs. plural) wasted an hour of my life. I hold you liable for that!
Mantis conversion info:
- Mantis ID: 38475
- OS: GNU/Linux
- OS Build: 4.4.0
- Build: 3.2.0+dfsg-7 [2020/08/21]
- Platform: x86_64
- Version: 3.2.0
- Fixed in version: 3.3.1
- Fixed in revision: 48651 (#1c99c265)