[Issue 21372] New: False deprecation raised for templated overloaded struct method
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 9 07:51:03 UTC 2020
https://issues.dlang.org/show_bug.cgi?id=21372
Issue ID: 21372
Summary: False deprecation raised for templated overloaded
struct method
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: default_357-line at yahoo.de
Consider the following code:
``` D
struct S {
deprecated("no") void foo(T)(int) { }
void foo(T)(string) { }
}
void main() { S().foo!int("hi"); }
```
Since 2.094.0, this raises a deprecation warning, despite the fact that the
overloaded call to foo doesn't select the deprecated version of foo.
--
More information about the Digitalmars-d-bugs
mailing list