[Issue 23882] New: ICE (segfault) on nasty alias this code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 4 09:29:51 UTC 2023


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

          Issue ID: 23882
           Summary: ICE (segfault) on nasty alias this code
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: john.loughran.colvin at gmail.com

struct G(H)
{
    Tuple!(R) S;
}

struct BB(H)
{
    H* YC;
    alias YC this;
}

struct R
{
    BB!(G!float) CB;
    alias CB this;

    this(typeof(CB.S).init);
}

class ND
{
    R[] RD()
    {
        return null;
    }
}

struct Tuple(Specs)
{
    Specs expand;

    this(Specs values)
    {
        expand = values;
    }
}


run.dlang.io says the segfault is there since 2.092.1

onlineapp.d(17): Error: `typeof((*YC).S).init` is used as a type
Segmentation fault (core dumped)

--


More information about the Digitalmars-d-bugs mailing list