Bug 19246 – Binary literal `0b_` allowed

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2018-09-14T14:40:54Z
Last change time
2018-11-09T09:33:40Z
Assigned to
wolframw
Creator
Steven Schveighoffer

Comments

Comment #0 by schveiguy — 2018-09-14T14:40:54Z
In issue 19018, the literals `0x`, `0x_`, and `0b` were deprecated. However, `0b_` was left as a valid literal. I can't see a good reason to allow this as a literal. Note that the current compiler implements exactly what is in the spec, but the spec seems inconsistent to me.
Comment #1 by github-bugzilla — 2018-11-06T12:07:36Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/57367c2a003e4251166491c57e2e5bf35dfc335d fix issue 19246 https://github.com/dlang/dmd/commit/d6e4bbbbabe39a3f507d9d6ae9b135b5e654d98d Merge pull request #8738 from wolframw/issue_19246 Fix Issue 19246 - Binary literal `0b_` allowed
Comment #2 by github-bugzilla — 2018-11-09T09:33:40Z