Bug 7574 – No line number with forward reference error

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-02-24T11:09:00Z
Last change time
2012-04-20T04:31:54Z
Keywords
diagnostic
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-02-24T11:09:40Z
struct Foo { Bar x; alias int[Spam*] Bar; } void main() {} DMD 2.059head gives: Error: forward reference of Spam
Comment #1 by lovelydear — 2012-04-20T01:50:03Z
2.059 Win32 gives: PS E:\DigitalMars\dmd2\samples> rdmd bug.d bug.d(3): Error: undefined identifier Spam