Bug 8610 – Compiler hangs with enum x=x;

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2012-09-02T12:17:00Z
Last change time
2012-10-31T09:16:48Z
Keywords
ice
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2012-09-02T12:17:29Z
This seems to put dmd 2.061alpha in loop: enum int x = x; void main() {}
Comment #1 by andrej.mitrovich — 2012-10-25T12:00:33Z
I can recreate in 2.060, can you too? FWIW when making these reports it's always good to test them with the official release first to verify this bug wasn't introduced in git HEAD.
Comment #2 by bearophile_hugs — 2012-10-25T14:14:27Z
(In reply to comment #1) > I can recreate in 2.060, can you too? I am still seeing the loop. So I think it's a regression of dmd 2.061alpa.
Comment #3 by clugdbug — 2012-10-31T05:54:17Z
Not a regression. Behaved exactly the same in 2.057. This has never worked.
Comment #4 by timon.gehr — 2012-10-31T09:16:48Z
*** This issue has been marked as a duplicate of issue 7209 ***