Newlines in wide raw strings are not handled correctly

Newlines in wide raw strings are not handled correctly

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

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

Leave a Comment

Please sign in to add a comment. Not a member? Join today