D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 9204 - Unable to create alias to template function instance with auto ref param
Summary: Unable to create alias to template function instance with auto ref param
Status: RESOLVED DUPLICATE of issue 8204
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
: 14657 (view as issue list)
Depends on:
Blocks:
 
Reported: 2012-12-24 17:21 UTC by Peter Alexander
Modified: 2022-07-27 14:26 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Peter Alexander 2012-12-24 17:21:46 UTC
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 basile-z 2016-11-20 22:57:11 UTC
*** Issue 14657 has been marked as a duplicate of this issue. ***
Comment 2 Nick Treleaven 2022-07-27 14:26:05 UTC

*** This issue has been marked as a duplicate of issue 8204 ***