← Back to index
|
Original Bugzilla link
Bug 13862 – function is not callable using argument types ()
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2014-12-14T18:01:00Z
Last change time
2014-12-14T18:03:08Z
Assigned to
nobody
Creator
ellery-newcomer
Comments
Comment #0
by ellery-newcomer — 2014-12-14T18:01:52Z
the code: template _dumb(I, string m, string op) { I _dumb(I amin, I amax, I bmin, I bmax) { return amin; } } template dumb(I, string m, string op) { alias dumb = _dumb!(I,m,op)._dumb; } void main(){ dumb!(uint, "max", "|")(1,2,3,4); } the compile: dmd bitall.d # dmd 2.066.1, 2.067 beta the fireworks: bitall.d(8): Error: _dumb (uint amin, uint amax, uint bmin, uint bmax) is not callable using argument types () bitall.d(8): Error: _dumb (uint amin, uint amax, uint bmin, uint bmax) is not callable using argument types () bitall.d(12): Error: template instance bitall.dumb!(uint, "max", "|") error instantiating the workaround: replace the inner _dumb with a non-eponymous name.