← Back to index
|
Original Bugzilla link
Bug 19018 – Lexer allows invalid integer literals, like `0x`
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-06-23T18:04:56Z
Last change time
2018-06-25T12:19:13Z
Assigned to
No Owner
Creator
Hiroki Noda
Comments
Comment #0
by kubo39 — 2018-06-23T18:04:56Z
--- void main() { assert(0b == 0); // can compile and run. assert(0B == 0); assert(0x == 0); assert(0x == 0); assert(0X == 0); assert(0x_ == 0); assert(0X_ == 0); }
Comment #1
by github-bugzilla — 2018-06-25T12:19:12Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/37ff0dc4376b1617066be6435ac3cedd86f7cc7f
Fix Issue 19018 - deprecate invalid integer literal
https://github.com/dlang/dmd/commit/362f6c4f3c9c73a8e40a93bde1cbf792cd55dfdf
Merge pull request #8396 from kubo39/invalid-integer-literal Fix Issue 19018 - lexer do not allow invalid integer literal merged-on-behalf-of: Jacob Carlborg <
[email protected]
>