Bug 13148 – ModuleInfo fields are unnecessary changed to const
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-17T04:48:00Z
Last change time
2014-08-22T07:17:24Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2014-07-17T04:48:51Z
Test case:
void main()
{
ModuleInfo mi;
foreach (m; ModuleInfo)
{ mi = *m; }
}
With 2.065:
-> OK
With 2.066 git-head:
-> Error: cannot modify struct mi ModuleInfo with immutable members