View Issue Details

IDProjectCategoryView StatusLast Update
0035239FPCCompilerpublic2019-12-26 22:33
ReporterKai Burghardt Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Platformx86_64OSGNU/Linux 
Product Version3.0.4 
Summary0035239: regression #0017685 “Conformance of the mod operator”
DescriptionThe program shown in 0017685 prints

 m = -10 mod 100 = 90
-10 mod 100 = -10

on the platform mentioned above.
Additional InformationWhile results of constant expressions are evaluated at compile-time, they should adhere to the selected mode though. That means, the same expression should give the same result no matter whether it's been calculated during run-time or compile-time.
Tagsregression
Fixed in Revision
FPCOldBugId
FPCTarget-
Attached Files

Activities

Florian

2019-12-26 22:33

administrator   ~0120077

Please note that in iso pascal -10 mod 100 must be parsed as -(10 mod 100). So FPC is correct (in the cited bug report this was also mentioned by Adrian).

Issue History

Date Modified Username Field Change
2019-03-16 15:12 Kai Burghardt New Issue
2019-03-16 15:13 Kai Burghardt Tag Attached: regression
2019-12-26 22:33 Florian Assigned To => Florian
2019-12-26 22:33 Florian Status new => resolved
2019-12-26 22:33 Florian Resolution open => no change required
2019-12-26 22:33 Florian FPCTarget => -
2019-12-26 22:33 Florian Note Added: 0120077