[Issue 19636] New: ICE: writing mixin to file crashes if the text contains CRLF

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 31 08:03:11 UTC 2019


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

          Issue ID: 19636
           Summary: ICE: writing mixin to file crashes if the text
                    contains CRLF
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: r.sagitario at gmx.de

Any string mixin containing CRLF causes the compiler to crash when using
-mixin:

////////////////////
module test;

const string s = "int fun(int x)\r\n{ return x; }\r\n";

mixin(s);

int main()
{
    int a = fun(1);
    return 0;
}
////////////////////

dmd -mixin=test.mixin test.d

BTW: the released compiler doesn't emit an error, it silently return error code
-1073741819 (access violation)

--


More information about the Digitalmars-d-bugs mailing list