Bug 8897 – Regression: 'has forward references' error for static class after template mixin

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-26T02:54:00Z
Last change time
2015-06-09T05:11:42Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2012-10-26T02:54:57Z
class C8897 { static mixin M8897!(int); static class causesAnError {} } template M8897 ( E ) { } bad.d(4): Error: class bad.C8897.causesAnError has forward references ---- Introduced by this pull: https://github.com/D-Programming-Language/dmd/pull/1067
Comment #1 by clugdbug — 2012-10-26T02:55:27Z
Applies to both D1 and D2.
Comment #2 by k.hara.pg — 2012-11-07T04:25:51Z
Comment #3 by github-bugzilla — 2012-11-07T05:05:21Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6d5d599dd6cc656574c5513da12bc34c2795352b fix Issue 8897 - Regression: 'has forward references' error for static class after template mixin https://github.com/D-Programming-Language/dmd/commit/e417843485252e412941512f5df4cf22d0aa69da Merge pull request #1265 from 9rnsr/fix8897 Issue 8897 - Regression: 'has forward references' error for static class after template mixin
Comment #4 by github-bugzilla — 2012-11-09T02:27:42Z
Commit pushed to dmd-1.x at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6b9c11935affbae686656cd4883b9f93eb980d12 fix Issue 8897 - Regression: 'has forward references' error for static class after template mixin