August 19, 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@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));
}
----
August 19, 2019
On Mon, Aug 19, 2019 at 12:30 PM ag0aep6g via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
>
> Reduced further:
>
> ----
> real sin(real x) { return 0; }
> double V2_V1_obl(double beta)
> {
>      return sin(beta) / sin(sin(beta));
> }
> ----

https://run.dlang.io/is/IEmbQ8
August 19, 2019
On Mon, Aug 19, 2019 at 12:38 PM Daniel Kozak <kozzi11@gmail.com> wrote:
>
> On Mon, Aug 19, 2019 at 12:30 PM ag0aep6g via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
> >
> > Reduced further:
> >
> > ----
> > real sin(real x) { return 0; }
> > double V2_V1_obl(double beta)
> > {
> >      return sin(beta) / sin(sin(beta));
> > }
> > ----
>
> https://run.dlang.io/is/IEmbQ8

Up to      2.066.0: Success with output: -nan
           2.067.1: Failure with output: Internal error: backend/evalu8.c 1274
           2.068.2: Failure with output: Internal error: backend/evalu8.c 1273
2.069.2 to 2.070.2: Failure with output: Internal error: backend/evalu8.c 1271
           2.071.2: Failure with output: Internal error: backend/evalu8.c 1260
           2.072.2: Failure with output: Internal error: backend/evalu8.c 1261
           2.073.2: Failure with output: Internal error: backend/evalu8.c 1296
2.074.1 to 2.075.1: Failure with output: Internal error:
ddmd/backend/evalu8.c 1297
2.076.1 to 2.077.1: Failure with output: Internal error:
ddmd/backend/evalu8.c 1296
           2.078.1: Failure with output: Internal error:
dmd/backend/evalu8.c 1296
           2.079.1: Failure with output: Internal error:
dmd/backend/evalu8.c 1030
           2.080.1: Failure with output: Internal error:
dmd/backend/evalu8.c 1028
Since      2.081.2: Status -4 and no output
August 19, 2019
On Monday, 19 August 2019 at 10:26:41 UTC, ag0aep6g wrote:
> Reduced further:
>
> ----
> real sin(real x) { return 0; }
> double V2_V1_obl(double beta)
> {
>     return sin(beta) / sin(sin(beta));
> }
> ----

One more:

real fun(real x) { return 0; }

double bug()
{
    return 0.0 / fun(7);
}

--
  Simen
August 19, 2019
On Mon, Aug 19, 2019 at 1:00 PM Simen Kjærås via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
>
> On Monday, 19 August 2019 at 10:26:41 UTC, ag0aep6g wrote:
> > Reduced further:
> >
> > ----
> > real sin(real x) { return 0; }
> > double V2_V1_obl(double beta)
> > {
> >     return sin(beta) / sin(sin(beta));
> > }
> > ----
>
> One more:
>
> real fun(real x) { return 0; }
>
> double bug()
> {
>      return 0.0 / fun(7);
> }
>
> --
>    Simen

you can even change 0.0 to just 0, but more interesting question is: Is it already reported on bugzilla?

August 19, 2019
On Monday, 19 August 2019 at 12:01:33 UTC, Daniel Kozak wrote:
> question is: Is it already reported on bugzilla?

I was unable to find any similar issues, but it's there now: https://issues.dlang.org/show_bug.cgi?id=20143

--
  Simen
1 2 3 4
Next ›   Last »