Bug 15733 – [REG2.066] Forward reference issue involving inheritance

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-02-27T20:00:00Z
Last change time
2016-03-19T19:27:16Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2016-02-27T20:00:56Z
$ cat bug.d class Statement: Node{} class Declaration: Statement{} class Node{ mixin Foo!Declaration; } template Foo(T){ mixin(T.stringof~" x;"); } $ dmd bug.d # DMD 2.070.0 bug.d(2): Error: class expression.Declaration is forward referenced when looking for 'stringof' bug.d(3): Error: mixin expression.Node.Foo!(Declaration) error instantiating
Comment #1 by timon.gehr — 2016-02-27T20:16:41Z
Works with DMD 2.060.
Comment #2 by k.hara.pg — 2016-03-10T16:09:52Z
Regression has been introduced in 2.066.
Comment #3 by k.hara.pg — 2016-03-10T16:52:59Z
Comment #4 by github-bugzilla — 2016-03-19T07:34:57Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/f6426fe7c7b8addb96d4f1b72b9d03653187d6ce fix Issue 15733 - Forward reference issue involving inheritance https://github.com/D-Programming-Language/dmd/commit/5264c960defa38772a6939eba039390729a26ab6 Merge pull request #5516 from 9rnsr/fix15733 [REG2.066] Issue 15733 - Forward reference issue involving inheritance
Comment #5 by github-bugzilla — 2016-03-19T19:27:16Z