[Issue 15992] [REG2.072a] ICE with field variable of instantiated struct

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jul 9 22:52:36 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15992

--- Comment #2 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://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

--


More information about the Digitalmars-d-bugs mailing list