[Issue 5995] string append negative integer causes segfault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 16 11:05:53 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5995
timon.gehr at gmx.ch changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |timon.gehr at gmx.ch
--- Comment #5 from timon.gehr at gmx.ch 2011-05-16 11:01:47 PDT ---
(In reply to comment #3)
> Hm... I think in general it is a design flaw to allow int to implicitly cast to
> dchar.
>
> I think that is the source of the problem.
>
> Going from (d|w)char to the appropriate width integer should be fine, but going
> the other way seems prone to error.
>
> Note that in lifetime.d, the assert(0) should not lead to a segmentation fault.
assert(0) emits asm{hlt;} when compiled in release mode. Encountering hlt _is_
a segmentation fault, so this is just fine.
--
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