Bug 12023 – Regression 2.065-b2: template mixin fails within template class

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-01-29T00:23:00Z
Last change time
2015-10-04T06:39:01Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
code

Attachments

IDFilenameSummaryContent-TypeSize
1316repro.drepro casetext/x-dsrc425

Comments

Comment #0 by code — 2014-01-29T00:23:28Z
Created attachment 1316 repro case I attatched a reduced repro case. This used to work with dmd 2.064 and all versions before that down to at least dmd 2.054.
Comment #1 by dlang-bugzilla — 2014-01-29T04:30:25Z
Comment #2 by k.hara.pg — 2014-01-29T05:45:10Z
Comment #3 by github-bugzilla — 2014-01-29T06:53:08Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/244c5ac393bac632f1bff518c7155afd67986f5f fix Issue 12023 - template mixin fails within template class https://github.com/D-Programming-Language/dmd/commit/257562ee24909f4d170ea0d9fe5d126ce85e1c8c Merge pull request #3174 from 9rnsr/fix12023 [REG2.065a] Issue 12023 - template mixin fails within template class
Comment #4 by github-bugzilla — 2014-02-01T04:50:48Z
Commit pushed to 2.065 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/91be324cc24b7c77d777e70e20f3dd727deda89a Merge pull request #3174 from 9rnsr/fix12023 [REG2.065a] Issue 12023 - template mixin fails within template class
Comment #5 by github-bugzilla — 2015-10-04T06:39:01Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/1df41dc6613e1e455e31136ac03b4102df5d54e1 Resolve forward reference in `VarDeclaration.toAlias()` After this change: 1. The check `!v.type` in `DsymbolExp.resolve` and `ScopeExp.semantic` will mean *unresolvable* forward reference. 2. The code for issue 12023 in `DsymbolExp.resolve` becomes cleaner. 3. Through the calls `AliasDeclaration.toAlias` and `VarDeclaration.toAlias`, selected import symbols will be resolved and `ice11300.d` case is made compilable.