View Issue Details

IDProjectCategoryView StatusLast Update
0038475FPCCompilerpublic2021-02-12 22:43
ReporterKai Burghardt Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSGNU/Linux 
Product Version3.2.0 
Fixed in Version3.3.1 
Summary0038475: compiler produces unhelpful messages for asm-offset calculation caused my non-existent identifiers
DescriptionThe 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 Reproduceprogram offsetDemo(input, output, stdErr);
{$asmMode intel}
var
    x: record
            thingsLocation: pointer;
        end;
begin
    asm
        mov x.thingLocation, rdi
    end;
end.
Additional InformationThis kind of spelling mistake (singular vs. plural) wasted an hour of my life. I hold you liable for that! 😜
TagsNo tags attached.
Fixed in Revision48651
FPCOldBugId
FPCTarget-
Attached Files

Activities

Florian

2021-02-11 21:52

administrator   ~0128901

I hope the two error message aren't confusing now ;)

Kai Burghardt

2021-02-11 22:53

reporter   ~0128902

Thank you very much!

It’s been fixed SVN revision 48651 though. The number 38475 identifies this very ticket. I know, too fast and suddenly there’s copy-paste mistake.

Florian

2021-02-12 22:43

administrator   ~0128917

Ops, fixed.

Issue History

Date Modified Username Field Change
2021-02-11 15:52 Kai Burghardt New Issue
2021-02-11 21:52 Florian Assigned To => Florian
2021-02-11 21:52 Florian Status new => resolved
2021-02-11 21:52 Florian Resolution open => fixed
2021-02-11 21:52 Florian Fixed in Version => 3.3.1
2021-02-11 21:52 Florian Fixed in Revision => 38475
2021-02-11 21:52 Florian FPCTarget => -
2021-02-11 21:52 Florian Note Added: 0128901
2021-02-11 22:53 Kai Burghardt Status resolved => feedback
2021-02-11 22:53 Kai Burghardt Resolution fixed => open
2021-02-11 22:53 Kai Burghardt Note Added: 0128902
2021-02-12 22:43 Florian Fixed in Revision 38475 => 48651
2021-02-12 22:43 Florian Status feedback => resolved
2021-02-12 22:43 Florian Resolution open => fixed
2021-02-12 22:43 Florian Note Added: 0128917