5391 – Crash with recursive alias declaration

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5391 - Crash with recursive alias declaration
Summary: Crash with recursive alias declaration
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: ice-on-invalid-code, patch
Depends on:
Blocks:
Reported: 2010年12月30日 04:44 UTC by bearophile_hugs
Modified: 2011年02月06日 13:38 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2010年12月30日 04:44:25 UTC
A D2 program:
alias Foo Foo;
alias Foo Bar;
void main() {}
DMD 2.051 shows this and then crashes:
test.d(1): Error: alias test3.Foo recursive alias declaration
Comment 1 Don 2011年02月03日 00:24:42 UTC
PATCH:
https://github.com/donc/dmd/commit/005636b84c11411f774d28c364b19656d67ad86f
Also merged to D1.


AltStyle によって変換されたページ (->オリジナル) /