www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21176] New: deprecation inside template should show the


          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: nobody puremagic.com
          Reporter: b2.temp gmx.com

https://forum.dlang.org/post/rhe6sv$5in$1 digitalmars.com

void foo(T)()
    alias F = ref int;

void main()


 /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
Aug 18 2020