Bug 16286 – REG(2.071): Alias with 0 arguments gives: 'template std.meta.Alias does not match any template declaration'
Status
RESOLVED
Resolution
WORKSFORME
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2016-07-17T19:02:00Z
Last change time
2016-07-17T19:27:41Z
Assigned to
nobody
Creator
timothee.cour2
Comments
Comment #0 by timothee.cour2 — 2016-07-17T19:02:14Z
DMD64 D Compiler v2.071.1
dmd -c -o- main.d
Error: template std.meta.Alias does not match any template declaration
with dmd 2.070: ok
----
void fun(T...)(T args){
import std.typetuple;
// Error: template std.meta.Alias does not match any template declaration
alias args2=Alias!(args);
fun(args2);
}
void main(){
fun();
//fun(1);//ok
}
----
// bug_D20160717T115740
This regression makes generic code such as above painful, as it requires special casing
Comment #1 by timothee.cour2 — 2016-07-17T19:27:41Z
nevermind, we are supposed to use AliasSeq instead of Alias