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

          Issue ID: 21176
           Summary: deprecation inside template should show the instance
                    loc as errorSupplemental
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

https://forum.dlang.org/post/[email protected]

---
void foo(T)()
{
    alias F = ref int;
}

void main()
{
    foo!int;
}  
---

outputs:

> /tmp/temp_7F8F0E944DF0.d(3,22): Deprecation: storage class `ref` has no 
> effect in type aliases

the ER is to have also this one:

> /tmp/temp_7F8F0E944DF0.d(8,5): instanciated from here

or, when the caller is not a template

> /tmp/temp_7F8F0E944DF0.d(8,5): called from here

--

Reply via email to