Bug 6727 – [CTFE] ICE(interpret.c): assignment from string literal.dup.ptr

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-09-24T23:27:00Z
Last change time
2015-06-09T05:11:40Z
Keywords
ice-on-valid-code
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2011-09-24T23:27:49Z
Related to bug 6721. char * blah(char *z) { return z;} static assert( { auto q = blah("a".dup.ptr); return true; }()); --- test.d(343): Error: CTFE internal error: illegal pointer value "a"[0u..1u] Assertion failure: 'isStackValueValid(newval)' on line 5571 in file 'interpret.c '
Comment #1 by bugzilla — 2011-09-26T23:08:34Z