[Issue 8204] Alias causes error: "auto can only be used for template function parameters"

2019-06-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8204 --- Comment #5 from Simen Kjaeraas --- That was my point. Instead of resolving to a single instantiation of the template, we could instantiate all possible ref/non-ref permutations and alias bar to the resultant overload set. Of course, when I think a

[Issue 8204] Alias causes error: "auto can only be used for template function parameters"

2019-06-07 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8204 --- Comment #4 from anonymous4 --- auto ref is IFTI, not an overload set though --

[Issue 8204] Alias causes error: "auto can only be used for template function parameters"

2019-06-06 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8204 Simen Kjaeraas changed: What|Removed |Added CC||simen.kja...@gmail.com --- Comment #3 from S

[Issue 8204] Alias causes error: "auto can only be used for template function parameters"

2017-07-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8204 --- Comment #2 from Vladimir Panteleev --- (In reply to dlang+issues from comment #0) > void foo(T)(ref auto T v) { } > alias foo!int bar; // Error: auto can only be used for template function > parameters What is the expected type of "bar" here? The

[Issue 8204] Alias causes error: "auto can only be used for template function parameters"

2014-08-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8204 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Comment #1