← Back to index
|
Original Bugzilla link
Bug 11118 – undefined identifier in template structs functions
Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-24T14:26:00Z
Last change time
2017-01-16T23:25:51Z
Keywords
rejects-valid
Assigned to
nobody
Creator
code.viator
Comments
Comment #0
by code.viator — 2013-09-24T14:26:37Z
[code] struct img(size_t DIM) { void setSize(E)( E[DIM] sz... ) {} } void main() { img!2 x; x.setSize( 10u, 10u ); } [/code] compiler return: bug.d(9): Error: undefined identifier DIM bug.d(9): Error: template bug.img!(2).img.setSize does not match any function template declaration. Candidates are: bug.d(3): bug.img!(2).img.setSize(E)(E[DIM] sz...) bug.d(9): Error: template bug.img!(2).img.setSize(E)(E[DIM] sz...) cannot deduce template function from argument types !()(uint, uint)
Comment #1
by ag0aep6g — 2016-11-20T20:55:20Z
*** Issue 16695 has been marked as a duplicate of this issue. ***
Comment #2
by github-bugzilla — 2016-12-23T07:02:24Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/ba6fddd46d0ba3bac410905feba62c4b6933c751
Fix issue #11118 - Correct lookup for template parameters.
https://github.com/dlang/dmd/commit/f64b42f3832e3e49e338918cbb55cf1f32a82331
Merge pull request #6345 from LemonBoy/b11118 Fix issue #11118 - Correct lookup for template parameters.
Comment #3
by github-bugzilla — 2016-12-27T14:41:40Z
Commits pushed to scope at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/ba6fddd46d0ba3bac410905feba62c4b6933c751
Fix issue #11118 - Correct lookup for template parameters.
https://github.com/dlang/dmd/commit/f64b42f3832e3e49e338918cbb55cf1f32a82331
Merge pull request #6345 from LemonBoy/b11118
Comment #4
by github-bugzilla — 2017-01-16T23:25:51Z
Commits pushed to newCTFE at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/ba6fddd46d0ba3bac410905feba62c4b6933c751
Fix issue #11118 - Correct lookup for template parameters.
https://github.com/dlang/dmd/commit/f64b42f3832e3e49e338918cbb55cf1f32a82331
Merge pull request #6345 from LemonBoy/b11118