D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16286 - REG(2.071): Alias with 0 arguments gives: 'template std.meta.Alias does not match any template declaration'
Summary: REG(2.071): Alias with 0 arguments gives: 'template std.meta.Alias does not m...
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Mac OS X
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-17 19:02 UTC by Timothee Cour
Modified: 2016-07-17 19:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Timothee Cour 2016-07-17 19:02:14 UTC
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 Timothee Cour 2016-07-17 19:27:41 UTC
nevermind, we are supposed to use AliasSeq instead of Alias