Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Newlines in wide raw strings are not handled correctly

$
0
0

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


Viewing all articles
Browse latest Browse all 1616

Trending Articles