View Issue Details

IDProjectCategoryView StatusLast Update
0038717FPCCompilerpublic2021-04-07 18:33
ReporterOndrej Pokorny Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformarm-linuxOSRaspberry Pi 
Product Version3.3.1 
Summary0038717: Compiler error on Currency multiplication and division
Description"C := C * R / D;" (all Currency types) fails to compile with "Error: Incompatible type for arg no. 1: Got "Currency", expected "Int64"" message
Steps To Reproduceprogram CurrencyTest;

{$mode objfpc}{$H+}

var
  C: Currency;
  R, D: Currency;
begin
  C := 1234.56;
  R := 4;
  D := 2;
  C := C * R / D;
  Writeln(C);
end.
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-04-07 18:33 Ondrej Pokorny New Issue