Comment #2 by github-bugzilla — 2016-07-10T05:52:36Z
Commits pushed to master at https://github.com/dlang/dmdhttps://github.com/dlang/dmd/commit/201b124e6c1784c19bdd012bdec7577452d82338
fix Issue 15992 - ICE with field variable of instantiated struct
When a template is instantiated in function body, it usually gets no chance to run `semantic2`, because inserted module's `semanticRun` would be greater than `PASSsemantic2done` (function bodies are analyzed in global `semantic3` stage).
Therefore we should append template instances to global deferred `semantic2` list as same as for `semantic3`.
https://github.com/dlang/dmd/commit/298d0102d27a50ef048c3bceb6761b470b4bc18c
Merge pull request #5780 from 9rnsr/fix15992
[REG2.072a] Issue 15992 - ICE with field variable of instantiated struct
Comment #3 by github-bugzilla — 2016-10-01T11:47:18Z