[Issue 24271] New: dmd exits with -4 on dub release (not sure what causes error, but have minimal repro code)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 6 14:54:44 UTC 2023
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 at puremagic.com
Reporter: al1-ce at 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
--
More information about the Digitalmars-d-bugs
mailing list