Bug 17757 – Wrongly reported deprecated message

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-08-16T16:52:26Z
Last change time
2017-08-16T18:30:04Z
Assigned to
No Owner
Creator
apham

Comments

Comment #0 by apz28 — 2017-08-16T16:52:26Z
Discussion: https://forum.dlang.org/post/[email protected] There are two toUTF16 (one template and one function), the function one is deprecated but the template one is not. Same issue with toUTF8 ones Test on dmd-2.075.1 void main() { import std.utf : toUTF16; // Same problem with toUTF8 wstring s = toUTF16!string("abc"); } Compilation output: /d500/f513.d(3): Deprecation: function std.utf.toUTF16 is deprecated - To be removed November 2017. Please use std.utf.encode instead. /d500/f513.d(3): Deprecation: function std.utf.toUTF16 is deprecated - To be removed November 2017. Please use std.utf.encode instead.
Comment #1 by johanengelen — 2017-08-16T18:30:04Z
*** This issue has been marked as a duplicate of issue 17193 ***