D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8004 - Direct call of function literal should consider default arguments
Summary: Direct call of function literal should consider default arguments
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 regression
Assignee: No Owner
URL:
Keywords: pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2012-04-29 18:15 UTC by Kenji Hara
Modified: 2012-04-30 00:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kenji Hara 2012-04-29 18:15:35 UTC
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 2 github-bugzilla 2012-04-29 22:38:32 UTC
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