Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.

Newlines in wide raw strings are not handled correctly

Poeter__Manuel
Beginner
152 Views

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

0 Kudos
1 Reply
Melanie_B_Intel
Employee
152 Views

I can reproduce your problem and I opened DPD200256547.  Thanks for the report. --Melanie

Reply