[dmd-internals] [D-Programming-Language/dmd] e8b350: fix Issue 11767 - doubly mixed-in struct "failed s...
GitHub
noreply at github.com
Wed Dec 25 23:58:51 PST 2013
Branch: refs/heads/master
Home: https://github.com/D-Programming-Language/dmd
Commit: e8b3503cf48f225569697a7603ad8769ef8942ac
https://github.com/D-Programming-Language/dmd/commit/e8b3503cf48f225569697a7603ad8769ef8942ac
Author: k-hara <k.hara.pg at gmail.com>
Date: 2013-12-23 (Mon, 23 Dec 2013)
Changed paths:
M src/template.c
M test/runnable/mixin1.d
Log Message:
-----------
fix Issue 11767 - doubly mixed-in struct "failed semantic analysis"
Inherently this is a mangling issue, which had been hidden since 2a3db5d7afd0c26e8a0ec58ff6fb6a8cd9647de6, and then detected by [the assertion for AST sanity](20fe5e8600498fed322a7d5d8305acb2de852cde).
Each mixed-in symbols are in independent scope, and their mangled names should also be different.
To fix the issue, assign scope-local unique name for each unnamed `TemplateMixin`s, as same as lambdas.
Commit: 4369b6d85b5cf4516af00c60796557028d4bee2d
https://github.com/D-Programming-Language/dmd/commit/4369b6d85b5cf4516af00c60796557028d4bee2d
Author: Walter Bright <walter at walterbright.com>
Date: 2013-12-25 (Wed, 25 Dec 2013)
Changed paths:
M src/template.c
M test/runnable/mixin1.d
Log Message:
-----------
Merge pull request #3019 from 9rnsr/fix11767
[REG2.060] Issue 11767 - doubly mixed-in struct "failed semantic analysis"
Compare: https://github.com/D-Programming-Language/dmd/compare/dc70741c071a...4369b6d85b5c
More information about the dmd-internals
mailing list