Bug 15825 – dmd's -transition=checkimports reports a false positive for tuple __dollar

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-03-23T22:37:00Z
Last change time
2016-03-28T14:22:59Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2016-03-23T22:37:06Z
cat > bug.d << CODE template anySatisfy(T...) { alias anySatisfy = T[$ - 1]; } alias T = anySatisfy!(int); CODE ---- dmd -transition=checkimports -c bug ---- bug.d(3): Deprecation: local import search method found variable bug.anySatisfy!int.__dollar instead of variable bug.anySatisfy!int.__dollar This creates an enormous amount of output when compiling a normal library and renders -transition=checkimports almost unusable.
Comment #1 by github-bugzilla — 2016-03-24T03:15:00Z
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a13a024a02ab62ba88cbe0f87815032d931f3090 fix Issue 15825 - dmd's -transition=checkimports reports a false positive for tuple __dollar `ArrayScopeSymbol.search` repeatedly creates __dollar symbol for tuple `length` propery. https://github.com/D-Programming-Language/dmd/commit/cf273f717fb45ae4c0393c2eab7f0c4ed9e6e9ef Merge pull request #5567 from 9rnsr/fix15825 Issue 15825 - dmd's -transition=checkimports reports a false positive for tuple __dollar
Comment #2 by github-bugzilla — 2016-03-28T14:22:59Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/a13a024a02ab62ba88cbe0f87815032d931f3090 fix Issue 15825 - dmd's -transition=checkimports reports a false positive for tuple __dollar https://github.com/D-Programming-Language/dmd/commit/cf273f717fb45ae4c0393c2eab7f0c4ed9e6e9ef Merge pull request #5567 from 9rnsr/fix15825