[Issue 6344] [CTFE] Assertion Failure in interpret.c when create an empty slice from null pointer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 18 13:22:01 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6344
kennytm at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Summary|CTFE: Assertion Failure in |[CTFE] Assertion Failure in
|interpret.c |interpret.c when create an
| |empty slice from null
| |pointer
--- Comment #2 from kennytm at gmail.com 2011-07-18 13:16:45 PDT ---
Ultimate cause: create an empty slice from a 'null' pointer.
----------------------
static assert({
char* c = null;
auto m = c[0..0];
return true;
}());
----------------------
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list