Bug 19636 – ICE: writing mixin to file crashes if the text contains CRLF

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2019-01-31T08:03:11Z
Last change time
2019-01-31T08:39:24Z
Assigned to
No Owner
Creator
Rainer Schuetze

Comments

Comment #0 by r.sagitario — 2019-01-31T08:03:11Z
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)
Comment #1 by r.sagitario — 2019-01-31T08:39:24Z