D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6727 - [CTFE] ICE(interpret.c): assignment from string literal.dup.ptr
Summary: [CTFE] ICE(interpret.c): assignment from string literal.dup.ptr
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2011-09-24 23:27 UTC by Don
Modified: 2015-06-09 05:11 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2011-09-24 23:27:49 UTC
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
'