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.
Comment #1 by k.hara.pg — 2012-04-29T20:26:11Z
Comment #2 by github-bugzilla — 2012-04-29T22:38:32Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c62833f09f75091f9fd73edf051c720829513e4b fix Issue 8004 - Direct call of function literal should consider default arguments https://github.com/D-Programming-Language/dmd/commit/aea217c612614d248c412d753ac135e86fad2931 Merge pull request #913 from 9rnsr/fix8004 Issue 8004 - Direct call of function literal should consider default arguments