Thread overview |
---|
June 15, 2022 [Issue 23173] "Error: signed integer overflow" for compiler generated string of `long.min` | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23173 Dennis <dkorpel@live.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dkorpel@live.nl Hardware|x86_64 |All Summary|"Error: signed integer |"Error: signed integer |overflow" when mixing in a |overflow" for compiler |`long.min` assignment |generated string of | |`long.min` OS|Linux |All --- Comment #1 from Dennis <dkorpel@live.nl> --- This is not related to mixin, it's how DMD converts the number to a string: ```D pragma(msg, long(-9223372036854775808)); ``` Prints `-9223372036854775808L`, with an L suffix. The problem is, the - operator is not part of the integer literal, so it's lexing `9223372036854775808L` which doesn't fit because L denotes a signed long. -- |
June 15, 2022 [Issue 23173] "Error: signed integer overflow" for compiler generated string of `long.min` | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23173 Dlang Bot <dlang-bot@dlang.rocks> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> --- @dkorpel created dlang/dmd pull request #14218 "Fix Issue 23173 - "Error: signed integer overflow" for compiler gener…" fixing this issue: - Fix Issue 23173 - "Error: signed integer overflow" for compiler generated string of `long.min` https://github.com/dlang/dmd/pull/14218 -- |
August 11, 2022 [Issue 23173] "Error: signed integer overflow" for compiler generated string of `long.min` | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23173 Dennis <dkorpel@live.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Dennis <dkorpel@live.nl> --- The bot didn't close this for some reason. -- |
Copyright © 1999-2021 by the D Language Foundation