Bug 22410 – [REG2.094] function with tuple parameter with default argument fails if there's a qualifier
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-10-17T15:50:35Z
Last change time
2021-10-21T21:39:39Z
Keywords
pull
Assigned to
No Owner
Creator
Boris Carvajal
Comments
Comment #0 by boris2.9 — 2021-10-17T15:50:35Z
test case:
---
alias A(T...) = T;
void fun(const A!(int, string) x = A!(1, "asdf"))
{
}
---
Output:
Error: forward reference to type (const(int), const(string))
Comment #1 by dlang-bot — 2021-10-17T16:04:45Z
@BorisCarvajal created dlang/dmd pull request #13184 "Fix Issue 22410 - [REG2.094] function with tuple parameter with default argument fails if there's a qualifier" fixing this issue:
- Fix Issue 22410 - [REG2.094] function with tuple parameter with default argument fails if there's a qualifier
https://github.com/dlang/dmd/pull/13184
Comment #2 by dlang-bot — 2021-10-18T00:45:03Z
dlang/dmd pull request #13184 "Fix Issue 22410 - [REG2.094] function with tuple parameter with default argument fails if there's a qualifier" was merged into stable:
- 810aadb787a6edb1c5b6c72405dc1614d016b648 by Boris Carvajal:
Fix Issue 22410 - [REG2.094] function with tuple parameter with default argument fails if there's a qualifier
https://github.com/dlang/dmd/pull/13184
Comment #3 by dlang-bot — 2021-10-21T21:39:39Z
dlang/dmd pull request #13209 "Merge stable into master" was merged into master:
- b43df169fbf5374686e48d9aa9521d1d6b7603eb by Boris Carvajal:
Fix Issue 22410 - [REG2.094] function with tuple parameter with default argument fails if there's a qualifier
https://github.com/dlang/dmd/pull/13209