Bug 13950 – [REG2.062] zero-length tuple does not work on function default argument

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-01-08T02:58:00Z
Last change time
2015-02-18T03:42:05Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Blocks
6613

Comments

Comment #0 by k.hara.pg — 2015-01-08T02:58:35Z
template Tuple(T...) { alias T Tuple; } // ok in 2.061, fails from 2.062 void f1(int x = 0, Tuple!() xs = Tuple!()) {} void main() { f1(); }
Comment #1 by k.hara.pg — 2015-01-08T03:45:18Z
Comment #2 by github-bugzilla — 2015-01-08T06:14:52Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7595a857f47181a86ad6d41be901734be4b051bc fix Issue 13950 - zero-length tuple does not work on function default argument https://github.com/D-Programming-Language/dmd/commit/3bcb956146c12e5a6aeef038ddb20c2d481cb3ce Merge pull request #4263 from 9rnsr/fix13950 [REG2.062] Issue 13950 - zero-length tuple does not work on function default argument
Comment #3 by github-bugzilla — 2015-02-18T03:42:05Z