[Issue 16286] New: REG(2.071): Alias with 0 arguments gives: 'template std.meta.Alias does not match any template declaration'
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jul 17 12:02:14 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16286
Issue ID: 16286
Summary: REG(2.071): Alias with 0 arguments gives: 'template
std.meta.Alias does not match any template
declaration'
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: timothee.cour2 at gmail.com
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
--
More information about the Digitalmars-d-bugs
mailing list