[Issue 11528] appender: crash with -inline -O

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 17 06:43:38 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11528


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com


--- Comment #3 from monarchdodra at gmail.com 2013-11-17 06:43:34 PST ---
(In reply to comment #0)
> This program is tweaked to cause a crash when building for Win32:
> 
> import std.array;
> 
> void main()
> {
>     auto arr = appender!string();
>     asm { mov EBX,-1; }
>     arr.put("1");
> }
> 
> >dmd -inline -O -g test.d
> >test
> object.Error: Integer Divide by Zero

Out of curiosity, did you "encounter" this bug out in the wild, and reduce it
to this, or did you see it in the code, and write this specifically?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list