[Issue 14220] New: Bad codegen for optimized std.conv.text in combination with concatenation

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Feb 24 05:11:25 PST 2015


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

          Issue ID: 14220
           Summary: Bad codegen for optimized std.conv.text in combination
                    with concatenation
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: r.sagitario at gmx.de

module test;
import std.conv;

void main()
{
    string s = "err: " ~ text(14);
}

Compiling this on win64 with: 

dmd -g -m64 -release -inline -O test.d

generates a crashing program. The error seems to disappear if one of -release
,-inline and -O is removed. It also does not happen without the concatenation.

--


More information about the Digitalmars-d-bugs mailing list