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

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

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