D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7575 - [ICE] with possible forward reference error
Summary: [ICE] with possible forward reference error
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-24 11:10 UTC by bearophile_hugs
Modified: 2012-04-20 04:33 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:10:24 UTC
D2 code:

struct Foo {
    Spam x;
    alias int[int] Spam;
    Spam bar() {
        return x;
    }
}
void main() {
    foreach (y; Foo().bar()) {}
}


DMD 2.059head crashes.
Comment 1 SomeDude 2012-04-20 01:52:56 UTC
Compiles successfully on 2.059 Win32