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

          Issue ID: 16616
           Summary: Advanced const propagation for structs
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: ilyayaroshe...@gmail.com

Extern precompiled Mir GLAS requires additional API changes.
The reduced example:

```d
struct S(T)
{
  size_t len;
  T ptr;
}

auto foo(S!(const(double)*) sl)
{
}

S!(double*) a;
const S!(double*) b;

foo(a); // fails
foo(b); // fails

```

--

Reply via email to