Bug 513 – using struct initializer on static array crashes the compiler
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-11-15T05:55:00Z
Last change time
2014-02-15T13:21:52Z
Assigned to
bugzilla
Creator
mslenc
Comments
Comment #0 by mslenc — 2006-11-15T05:55:17Z
==== case1.d ====
void foo() {
int[1] barbar = { 1 };
}
==== case2.d ====
int[1] barbar = { 1 };
>dmd case1.d
Assertion failure: '0' on line 219 in file 'init.c'
abnormal program termination
>dmd case2.d
dmd.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
in some recent previous version (not sure which one, though), case2 correctly reported what the error is, and case1 still crashed.
Comment #1 by matti.niemenmaa+dbugzilla — 2006-12-03T03:45:06Z