← Back to index
|
Original Bugzilla link
Bug 7573 – No line number with associative array creation error
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-02-24T11:08:00Z
Last change time
2012-04-20T04:30:18Z
Keywords
diagnostic
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2012-02-24T11:08:41Z
D2 code: struct Foo { Spam x; alias int[Foo*] Spam; Spam bar() { return x; } } void main() { foreach (y; Foo().bar()) {} } DMD 2.059head gives an error with no line number: Error: cannot create associative array int[Foo*]
Comment #1
by lovelydear — 2012-04-20T01:48:07Z
Compiles and runs(!) successfully on 2.059 Win32