[Issue 16616] New: Advanced const propagation for structs
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Oct 16 01:34:24 PDT 2016
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: nobody at puremagic.com
Reporter: ilyayaroshenko at 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
```
--
More information about the Digitalmars-d-bugs
mailing list