www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21060] New: ICE in semantic, at d/dmd/dstruct.c:1224

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

          Issue ID: 21060
           Summary: ICE in semantic, at d/dmd/dstruct.c:1224
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Seen in the dmd-cxx branch, maybe it's been fixed by same PR as issue 20530 and
issue 20537.

bug.d
```
struct S
{
    void print()
    {
        import pkga;
        import pkgb;
    }
}
```

pkga/package.d
```
import pkgc;
```

pkgb/package.d
```
module pkgd;

struct P 
{
}
```

pkgc/package.d
```
import pkgd;
```

pkgd/package.d
```
module pkgd;

struct P 
{
}
```

--
Jul 20 2020