[Issue 9204] New: Unable to create alias to template function instance with auto ref param
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 24 17:21:49 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9204
Summary: Unable to create alias to template function instance
with auto ref param
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: peter.alexander.au at gmail.com
--- Comment #0 from Peter Alexander <peter.alexander.au at gmail.com> 2012-12-24 17:21:46 PST ---
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!()
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list