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
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