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: [email protected]
          Reporter: [email protected]

```
> 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;
```

--

Reply via email to