Bug 1477 – DMD hangs on named struct field initializer
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-09-06T00:03:00Z
Last change time
2015-06-09T01:14:16Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
torhu
Comments
Comment #0 by torhu — 2007-09-06T00:03:13Z
This puts dmd 2.004 into and endless loop. I don't know if this is a regression or not, since DMD 2.003 won't accept this code at all because of issue 1342.
---
struct Foo {
int x;
}
const Foo f = {
x: 1
//1 // using this instead works just fine
};
Foo g = f;
---
Comment #1 by torhu — 2007-12-20T15:23:31Z
This works with 2.005 and 2.008, so I assume it was fixed without being mentioned in the change log.