regression #17685 “Conformance of the mod operator”
Original Reporter info from Mantis: kays @KaiBurghardt
-
Reporter name: Kai Burghardt
Original Reporter info from Mantis: kays @KaiBurghardt
- Reporter name: Kai Burghardt
Description:
The program shown in #17685 (closed) prints
m = -10 mod 100 = 90
-10 mod 100 = -10
on the platform mentioned above.
Additional information:
While 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.
Mantis conversion info:
- Mantis ID: 35239
- OS: GNU/Linux
- OS Build: 4.2.0
- Build: 3.0.4+dfsg-11 [2017/12/30]
- Platform: x86_64
- Version: 3.0.4