Bug 12950 – Lexer interprets UFCS on hex integer as hex float literal
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-06-19T21:18:33Z
Last change time
2019-06-14T08:52:56Z
Keywords
pull, rejects-valid
Assigned to
No Owner
Creator
briancschott
Comments
Comment #0 by briancschott — 2014-06-19T21:18:33Z
Another chapter in the long and stupid history of UFCS and numeric literals:
---
import std.stdio;
void x(int f) { writeln(f); }
void main(string[] args)
{
123.x; // Compiles and runs
0x123.x; // Does not compile
}
---
Comment #1 by dlang-bot — 2019-06-10T09:39:29Z
@Basile-z created dlang/dmd pull request #10019 "fix issue 12950 - Lexer interprets UFCS on hex integer as hex float literal" fixing this issue:
- fix issue 12950 - Lexer interprets UFCS on hex integer as hex float literal
https://github.com/dlang/dmd/pull/10019
Comment #2 by dlang-bot — 2019-06-14T08:52:56Z
dlang/dmd pull request #10019 "fix issue 12950 - Lexer interprets UFCS on hex integer as hex float literal" was merged into stable:
- 29c785c767c11776eb02db1b15513981c3e932f6 by Basile Burg:
fix issue 12950 - Lexer interprets UFCS on hex integer as hex float literal
https://github.com/dlang/dmd/pull/10019