Bug 7185 – [CTFE] ICE on changing char array length

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-12-30T08:48:00Z
Last change time
2012-01-04T18:25:11Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2011-12-30T08:48:54Z
--- auto f() { auto arr = new char[2]; // no error with byte, int, etc. arr.length = 1; return arr; } enum e = f(); --- assert interpret.c(3560) oldval->op == TOKarrayliteral
Comment #1 by bugzilla — 2012-01-04T18:25:11Z