www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14520] New: [REG2.067.0] string/alias template overload

https://issues.dlang.org/show_bug.cgi?id=14520

          Issue ID: 14520
           Summary: [REG2.067.0] string/alias template overload
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

/////////// test.d //////////
int f();

mixin template M(alias  a) {}
mixin template M(string s) {}

mixin M!f;
/////////////////////////////

test.d(4): Error: f cannot be interpreted at compile time, because it has no
available source code

Introduced in https://github.com/D-Programming-Language/dmd/pull/4375

--
Apr 28 2015