Bug 16616 – Advanced const propagation for structs

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-10-16T08:34:00Z
Last change time
2016-10-16T17:02:59Z
Assigned to
nobody
Creator
ilyayaroshenko

Comments

Comment #0 by ilyayaroshenko — 2016-10-16T08:34:24Z
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 ```
Comment #1 by ilyayaroshenko — 2016-10-16T10:36:27Z
Fixing this issue will allow also significantly reduce template bloat for generic code.
Comment #2 by ilyayaroshenko — 2016-10-16T17:02:59Z