Bug 1122 – dmd generate bad line number while reporting error message

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-10T20:51:00Z
Last change time
2014-02-16T15:25:30Z
Assigned to
bugzilla
Creator
davidl

Comments

Comment #0 by davidl — 2007-04-10T20:51:33Z
char[] getkey(char[]key1,char[]key2) { char[] v; *(cast(int*)&v[(4+key1.length)..(8+key1.length)]=key2.length; //) is missed return v; } void main() { getkey("asdf","df"); } In my opinion expected ) not ; message should be generated when parsing *(cast(int*)&v[(4+key1.length)..(8+key1.length)]=key2.length; not give me an unexist line number
Comment #1 by bugzilla — 2007-04-11T22:03:55Z
Fixed dmd 1.011
Comment #2 by thomas-dloop — 2007-04-27T12:39:20Z