www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14220] New: Bad codegen for optimized std.conv.text in


          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 puremagic.com
          Reporter: r.sagitario 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.

Feb 24 2015