Bug 15116 – Unreasonable rejection of tuple field access via named mixin

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-09-25T12:30:00Z
Last change time
2016-10-01T11:45:19Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Blocks
15311

Comments

Comment #0 by k.hara.pg — 2015-09-25T12:30:11Z
Test case: alias TypeTuple(T...) = T; template Mix() { TypeTuple!(int, int) tup; } struct S { mixin Mix mix; } void main() { S s; auto x1 = s.tup; // OK auto x2 = s.mix.tup; // NG, bug }
Comment #1 by k.hara.pg — 2015-09-25T12:44:36Z
Comment #2 by github-bugzilla — 2016-03-28T05:30:05Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b51fecf86da4f273242e9b3e7cfb150ea1dba57b fix Issue 15116 - Unreasonable rejection of tuple field access via named mixin https://github.com/D-Programming-Language/dmd/commit/d2ee18c7401da4c961a60b19241178f629e3ce84 Merge pull request #5118 from 9rnsr/fix_dotidexp Issue 15116 & 15117 - fix bugs in DotIdExp.semanticY
Comment #3 by github-bugzilla — 2016-10-01T11:45:19Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/b51fecf86da4f273242e9b3e7cfb150ea1dba57b fix Issue 15116 - Unreasonable rejection of tuple field access via named mixin https://github.com/dlang/dmd/commit/d2ee18c7401da4c961a60b19241178f629e3ce84 Merge pull request #5118 from 9rnsr/fix_dotidexp