https://issues.dlang.org/show_bug.cgi?id=1578
mw <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #6 from mw <[email protected]> --- (In reply to Don from comment #2) > Reduced test case: > > static int sizemap[int]= [0:0, 1:1, 2:4, 3:8, 4:8, 4:16]; > > changed title from "const initializer rejected". The work-around is: enum int[int] sizemap= [0:0, 1:1, 2:4, 3:8, 4:8, 4:16]; BTW, this is a very old issue, if it's not intended to be fixed, can we add to the doc, and close it? --
