Bug 9204 – Unable to create alias to template function instance with auto ref param
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-12-24T17:21:46Z
Last change time
2022-07-27T14:26:05Z
Assigned to
No Owner
Creator
Peter Alexander
Comments
Comment #0 by peter.alexander.au — 2012-12-24T17:21:46Z
void foo()(auto ref int x) {}
alias foo!() bar;
$ dmd test.d
test.d(1): Error: auto can only be used for template function parameters
test.d(2): Error: template instance test.foo!() error instantiating
You get a similar error if you try to take the address of foo!()
Comment #1 by b2.temp — 2016-11-20T22:57:11Z
*** Issue 14657 has been marked as a duplicate of this issue. ***
Comment #2 by nick — 2022-07-27T14:26:05Z
*** This issue has been marked as a duplicate of issue 8204 ***