[Issue 21176] New: deprecation inside template should show the instance loc as errorSupplemental
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 18 22:51:05 UTC 2020
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: nobody at puremagic.com
Reporter: b2.temp at gmx.com
https://forum.dlang.org/post/rhe6sv$5in$1@digitalmars.com
---
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
--
More information about the Digitalmars-d-bugs
mailing list