Title
_Pragma and extended string-literals
Status
open
Section
15.12 [cpp.pragma.op]
Submitter
Daniel Krügler

Created on 2009-05-09.00:00:00 last changed 136 months ago

Messages

Date: 2013-10-15.00:00:00

Additional note (October, 2013):

If raw string literals are supported, the question of how to handle line splicing is relevant. The wording says that “the characters are processed through translation phase 3,” which is a bit ambiguous as to whether that includes phases 1 and 2 or not. It would be better to be explicit and say that the processing of phase 3 or of phases 1 through 3 is applied.

See also the near-duplicate issue 2694.

Date: 2009-05-09.00:00:00

The specification of how the string-literal in a _Pragma operator is handled does not deal with the new kinds of string literals. 15.12 [cpp.pragma.op] says,

The string literal is destringized by deleting the L prefix, if present, deleting the leading and trailing double-quotes, replacing each escape sequence...

The various other prefixes should either be handled or prohibited.

History
Date User Action Args
2013-10-14 00:00:00adminsetmessages: + msg4675
2009-05-09 00:00:00admincreate