Bug 1744 – CTFE: crash on assigning void-returning function to variable

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-12-20T04:04:00Z
Last change time
2014-02-24T15:32:18Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
matti.niemenmaa+dbugzilla

Comments

Comment #0 by matti.niemenmaa+dbugzilla — 2007-12-20T04:04:45Z
void foo() {} int bar() { int x = foo(); } const y = bar(); No ICE, just crashes. Does give the expected error messages for trying to assign void to int though, so it's not that bad.
Comment #1 by matti.niemenmaa+dbugzilla — 2008-01-01T11:22:09Z
Fixed in DMD 1.025.
Comment #2 by bugzilla — 2008-01-02T19:47:41Z
Fixed dmd 1.025 and 2.009