digitalmars.D.bugs - [Issue 18250] New: deprecate + transition=complex should check
- d-bugmail puremagic.com (30/31) Jan 17 2018 https://issues.dlang.org/show_bug.cgi?id=18250
https://issues.dlang.org/show_bug.cgi?id=18250 Issue ID: 18250 Summary: deprecate + transition=complex should check whether the templates are instantiated from a deprecated scope Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: greensunny12 gmail.com auto foo(T)(T t) { return T.init; } deprecated unittest { auto b = foo(2 + 2i); } This shouldn't trigger an error, but it does:dmd -unittest -c -o- -transition=complex foo.dfoo.d(1): Deprecation: use of complex type cdouble is deprecated, use std.complex.Complex!(double) instead foo.d(3): Deprecation: use of complex type cdouble is deprecated, use std.complex.Complex!(double) instead foo.d(1): Deprecation: use of complex type cdouble is deprecated, use std.complex.Complex!(double) instead --
Jan 17 2018