Bug 5138 – Special token sequence

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-10-30T16:50:00Z
Last change time
2015-06-09T05:12:01Z
Keywords
accepts-invalid
Assigned to
nobody
Creator
jemandy

Comments

Comment #0 by jemandy — 2010-10-30T16:50:32Z
If I understand the documentation correctly, this should not compile: #line 99L This is because the fist token following line is supposed to be an Integer, not an IntegerLiteral. Thus the suffix "L" should not be allowed. However, this compiles on both D1 and D2. The suffix here is silly but harmless. I don't much care whether it should be allowed. But it is still worth noting that the documentation is inconsistent with the compiler behavior. Tested on Windows with v1.063, v1.065, v2.049, and v2.050.
Comment #1 by bugzilla — 2012-01-20T00:31:40Z
Fixed 1.073/2.058