Bug 8004 – Direct call of function literal should consider default arguments
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-29T18:15:00Z
Last change time
2012-04-30T00:37:27Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2012-04-29T18:15:35Z
This code doesn't compile in git head.
auto n = (int n = 10){ return n; }();
This regression is introduced by fixing bug 3866.
Calling function literal directly is never indirect call, so this is regression IMO.