www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16545] New: Runtime crash when trying to append big int value

https://issues.dlang.org/show_bug.cgi?id=16545

          Issue ID: 16545
           Summary: Runtime crash when trying to append big int value to
                    string
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: skocznymr gmail.com

Found on DMD32 D Compiler v2.070.2. According to IRC, reproduces on git HEAD
too.

The following code:

void main()
{
    string s;
    uint x = 123424121;
    s ~= x;
}


crashes at runtime with error:

object.Error (0): assert(0) or HLT instruction

--
Sep 26 2016