D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7574 - No line number with forward reference error
Summary: No line number with forward reference error
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 major
Assignee: No Owner
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2012-02-24 11:09 UTC by bearophile_hugs
Modified: 2012-04-20 04:31 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2012-02-24 11:09:40 UTC
struct Foo {
    Bar x;
    alias int[Spam*] Bar;
}
void main() {}


DMD 2.059head gives:

Error: forward reference of Spam
Comment 1 SomeDude 2012-04-20 01:50:03 UTC
2.059 Win32 gives:

PS E:\DigitalMars\dmd2\samples> rdmd bug.d
bug.d(3): Error: undefined identifier Spam