Cryptic bug for DMD v2.087.x

ag0aep6g anonymous at example.com
Mon Aug 19 10:26:41 UTC 2019


On 19.08.19 09:30, Peter Jacobs wrote:
> Here is the test case, now that dustmite has done its work:
> 
> // test2.d PJ 2019-08-19
> import std;
> double r2_r1_obl(double , double beta, double )
> {
>      double M1n = fabs(sin(beta));
>      return M1n;
> }
> double V2_V1_obl(double M1, double beta, double g)
> {
>      return sin(beta) / r2_r1_obl(M1, beta, g);
> }
> 
> my build script:
> 
> #! /bin/bash
> dmd -O -inline test2.d
> 
> and a log of the result:
> 
> peterj at helmholtz ~/dgd-play/src/test $ ./build-test2.sh
> tym = x14
> ./build-test2.sh: line 2:  3723 Illegal instruction     (core dumped) 

Reduced further:

----
real sin(real x) { return 0; }
double V2_V1_obl(double beta)
{
     return sin(beta) / sin(sin(beta));
}
----


More information about the Digitalmars-d mailing list