[Issue 23978] [REG 2.103.0] ICE: Segmentation fault in dmd.root.aav.dmd_aaGetRvalue at src/dmd/root/aav.d:127

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 8 15:52:11 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23978

--- Comment #11 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Vladimir Panteleev from comment #7)
> I have not been able to reproduce this. It would be good to have a test case
> which more reliably reproduces the bug. I tried wrapping the code into a
> static foreach, but that did not help.

(In reply to Vladimir Panteleev from comment #8)
> Also because we need something to put in the test suite to prevent this from
> regressing again.
Can you drop this into compiler/test/compilable/test23978.d?

---
// REQUIRED_ARGS: -preview=dip1021 -lowmem
// PERMUTE_ARGS: -debug=A -debug=B -debug=C -debug=D -debug=E -debug=F -debug=G
-debug=H
class LUBench { }
void lup(ulong , ulong , int , int = 1)
{
    new LUBench;
}
void lup_3200(ulong iters, ulong flops)
{
    lup(iters, flops, 3200);
}
void raytrace()
{
    struct V
    {
        float x, y, z;
        auto normalize() { }
        struct Tid { }
        auto spawnLinked() { }
        string[] namesByTid;
        class MessageBox { }
        auto cross() { }
    }
}
---

The long list of permutations should make the test compile ~256 times.  Enough
to ensure that it never succeeds on any of my dev machines.

--


More information about the Digitalmars-d-bugs mailing list