Bug 7569 – cannot void initialize tuple declarations

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-23T18:24:00Z
Last change time
2013-02-18T22:03:18Z
Keywords
pull, rejects-valid
Assigned to
andrej.mitrovich
Creator
code

Comments

Comment #0 by code — 2012-02-23T18:24:37Z
cat > bug.d << CODE template Tuple(T...) { alias T Tuple; } void main() { Tuple!(int, int) tup = void; } CODE dmd -c bug bug.d(8): Error: void initializer has no value --------
Comment #1 by andrej.mitrovich — 2013-02-17T20:32:29Z
Comment #2 by github-bugzilla — 2013-02-18T22:02:12Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2e30442d5d2513231ab7aec637b8f17c4f39f231 Fixes Issue 7569 - Allow void initializer for Tuple variables. https://github.com/D-Programming-Language/dmd/commit/1913c774ce7f90f32ca414560c74c2aa8d6297cf Merge pull request #1674 from AndrejMitrovic/Fix7569 Issue 7569 - Allow void initializer for Tuple variables.