Bug 950 – Missing filename and line number: conflict between implicit length in [...] and explicit length declared in the scope

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-02-11T20:11:00Z
Last change time
2014-02-16T15:22:39Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
smjg

Comments

Comment #0 by smjg — 2007-02-11T20:11:08Z
---------- void main() { int length; int[4] data; data[length - 1] = 42; } ---------- Error: array 'length' hides other 'length' name in outer scope ----------
Comment #1 by thomas-dloop — 2007-03-04T05:02:19Z
Comment #2 by bugzilla — 2007-03-29T19:05:25Z
Fixed DMD 1.010