Bug 11735 – pragma(msg, ...) fails to print wstring, dstring

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-13T04:41:00Z
Last change time
2014-03-14T21:48:04Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
yazan.dabain

Comments

Comment #0 by yazan.dabain — 2013-12-13T04:41:49Z
Code: pragma(msg, "printed correctly"); pragma(msg, "prints 'p' only"w); pragma(msg, "prints 'p' only"d); void main() {} Output: printed correctly p p Expected output: printed correctly prints 'p' only prints 'p' only
Comment #1 by github-bugzilla — 2013-12-14T06:24:51Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/117fc133f078de7bfb312d547378e32ca4f17b51 Merge pull request #2959 from yazd/fix-11735 Issue 11735 - pragma(msg, ...) fails to print wstring, dstring
Comment #2 by andrej.mitrovich — 2014-03-14T10:38:37Z
The fix is incomplete, the following doesn't print properly: void main() { enum a = "foo"; enum b = "foo"w; enum c = "foo"d; pragma(msg, a); // foo pragma(msg, b); // f pragma(msg, c); // f }
Comment #3 by andrej.mitrovich — 2014-03-14T10:44:25Z
Comment #4 by github-bugzilla — 2014-03-14T21:45:33Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c70e229476adea5c2979d855d68618253154a8a4 Fixes Issue 11735 - pragma(msg) doesn't work with wchar/dchar strings. https://github.com/D-Programming-Language/dmd/commit/dea20e73f78649102b4a7945e976198dd8a5c51f Merge pull request #3381 from AndrejMitrovic/Fix11735 Fixes Issue 11735 - pragma(msg) doesn't work with wchar/dchar strings.