January 31, 2019 [Issue 19636] New: ICE: writing mixin to file crashes if the text contains CRLF | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: r.sagitario@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) -- |
Copyright © 1999-2021 by the D Language Foundation