Bug 1236 – Grammar for Floating Literals is incomplete

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2007-05-16T03:36:00Z
Last change time
2015-06-09T05:14:55Z
Assigned to
bugzilla
Creator
d

Comments

Comment #0 by d — 2007-05-16T03:36:24Z
The grammar for floating literals has no rules to describe imaginary integers : 1i for instance is parsed as an idouble by the compiler, but fails to match any of the FloatLiteral grammar rules. An example would be helpful too. 1i * 1i -> -1. (a double)
Comment #1 by bugzilla — 2007-07-01T14:06:45Z
Fixed DMD 1.018 and DMD 2.002