Cryptic bug for DMD v2.087.x

Peter Jacobs peterj at mech.uq.edu.au
Mon Aug 19 07:30:53 UTC 2019


On Monday, 12 August 2019 at 11:30:58 UTC, Nicholas Wilson wrote:
[...]
>
> So it would appear that you are trying (apparently successfully 
> with debug DMD (and LDC(?)) to use `real` with xmm somehow???
> I can't really help anymore without a reduced test case.

Nicholas,
That rabbit hole was about 5 days deep :)

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) dmd -O -inline test2.d
peterj at helmholtz ~/dgd-play/src/test $ dmd --version
DMD64 D Compiler v2.087.1
Copyright (C) 1999-2019 by The D Language Foundation, All Rights 
Reserved written by Walter Bright





More information about the Digitalmars-d mailing list