Issue 15733 - [REG2.066] Forward reference issue involving inheritance
Summary: [REG2.066] Forward reference issue involving inheritance
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords: pull, rejects-valid
Depends on:
Blocks:
 
Reported: 2016-02-27 20:00 UTC by timon.gehr
Modified: 2016-03-19 19:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description timon.gehr 2016-02-27 20:00:56 UTC
$ 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 timon.gehr 2016-02-27 20:16:41 UTC
Works with DMD 2.060.
Comment 2 Kenji Hara 2016-03-10 16:09:52 UTC
Regression has been introduced in 2.066.
Comment 4 github-bugzilla 2016-03-19 07:34:57 UTC
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 github-bugzilla 2016-03-19 19:27:16 UTC
Commits pushed to master 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