Bug 3645 – manifest constant (enum) crashes dmd

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2009-12-24T05:30:00Z
Last change time
2015-06-09T01:27:01Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
spam

Comments

Comment #0 by spam — 2009-12-24T05:30:11Z
version is 2.037 but it is not available in bugzilla. [CODE] import std.stdio; struct Foo { public int foo() { return 2; } } void main() { Foo bar; enum bla = bar.foo(); //crash } [/CODE] this enum declration gives no error or anything but crashes dmd (2.037) while compiling with no options set.
Comment #1 by spam — 2009-12-24T05:33:56Z
ok investigated more and it turns out this bug is really a regression since dmd2036. with dmd2035 the code worked as expected and did not crash dmd.
Comment #2 by bugzilla — 2009-12-24T15:45:48Z
Changeset 310.
Comment #3 by leandro.lucarella — 2009-12-25T09:59:37Z
Comment #4 by bugzilla — 2009-12-31T11:18:08Z
Fixed dmd 1.054 and 2.038