www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16286] New: REG(2.071): Alias with 0 arguments gives:

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 puremagic.com
          Reporter: timothee.cour2 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

--
Jul 17 2016