December 06, 2023 [Issue 24271] New: dmd exits with -4 on dub release (not sure what causes error, but have minimal repro code) | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24271 Issue ID: 24271 Summary: dmd exits with -4 on dub release (not sure what causes error, but have minimal repro code) Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: al1-ce@list.ru Created attachment 1902 --> https://issues.dlang.org/attachment.cgi?id=1902&action=edit Full "project" including dub.json Having a file with this piece of code in sources crashes compiler with -4 exit code. Reduced with dustmite. Names and imports don't matter (import std; crashes also). ------------------------------------------------ import std.math: sin, acos; struct ErrorStruct { float[] data; this(float[] vals...) { data = [vals[0]]; } ErrorStruct doMath(double a) { double d; float hth = acos(d); float ra = sin(-a * hth); float rb = a * hth; return ErrorStruct(ra + rb); } } ------------------------------------------------ Also I'm sorry about issue name but I genuenly have no idea why it does that here -- |
Copyright © 1999-2021 by the D Language Foundation