- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm using the Intel Composer XE 14.0.2.176 on Windows.
The compiler does not handle newlines in wide raw strings correctly. For example:
const wchar_t* s = LR"({ "foo": "bar" })";
The memory that s points to looks like this:
0x00007FF60FD0A2EC 7b 00 5c 00 6e 00 09 00 09 00 20 00 20 00 20 {.\.n..... . . 0x00007FF60FD0A2FB 00 22 00 66 00 6f 00 6f 00 22 00 3a 00 20 00 .".f.o.o.".:. . 0x00007FF60FD0A30A 22 00 62 00 61 00 72 00 22 00 5c 00 6e 00 09 ".b.a.r.".\.n.. 0x00007FF60FD0A319 00 09 00 7d 00 00 00 00 00 00 00 00 00 00 00 ...}...........
This only happens with wide raw strings - narrow strings work fine.
Regards,
Manuel
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can reproduce your problem and I opened DPD200256547. Thanks for the report. --Melanie

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page