www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14359] New: DMD does not compile SDC test0154.d

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

          Issue ID: 14359
           Summary: DMD does not compile SDC test0154.d
           Product: D
           Version: unspecified
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: shammah.chancellor gmail.com

```
 dmd test0154.d
test0154.d(6): Error: undefined identifier T ``` ```test0154.d //T compiles:yes //T has-passed:yes //T retval:25 // template value parameter auto foo(T U, T)() { return cast(int) (U + T.sizeof); } int main() { return foo!true() + foo!10() + foo!I(); } enum I = 5; ``` --
Mar 28 2015