Bug 18572 – AliasSeq default arguments are broken

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-03-07T20:25:51Z
Last change time
2019-08-10T21:50:17Z
Assigned to
No Owner
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2018-03-07T20:25:51Z
DMD 2.079.0: alias Seq(T...)=T; void func(Seq!(int,int,int) args=Seq!(1,2,3)){ // ok } void main(){ Seq!(int,int,int) args=Seq!(1,2,3); // ok func(); // error func(args); // ok } The code should compile.
Comment #1 by razvan.nitu1305 — 2018-11-18T14:13:39Z
Comment #2 by github-bugzilla — 2018-11-19T06:05:48Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/5e48302354a1ec1b55108c8a8a90613b7f3eebf2 Fix Issue 18572 - AliasSeq default arguments are broken https://github.com/dlang/dmd/commit/1dc6eb2abb8cc2b198572b1e73598bb0d420ea82 Merge pull request #8967 from RazvanN7/Issue_18572 Fix Issue 18572 - AliasSeq default arguments are broken merged-on-behalf-of: Nicholas Wilson <[email protected]>
Comment #3 by ag0aep6g — 2019-08-10T21:50:17Z
*** Issue 15170 has been marked as a duplicate of this issue. ***