================
@@ -1557,7 +1557,8 @@ void Preprocessor::HandleLineDirective() {
     return;
   } else {
     // Parse and validate the string, converting it into a unique ID.
-    StringLiteralParser Literal(StrTok, *this);
+    StringLiteralParser Literal(
+        StrTok, *this, StringLiteralEvalMethod::Evaluated, CA_NoConversion);
----------------
s-barannikov wrote:

The latest "Unevaluated strings" 
[proposal](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2361r6.pdf)
 says this in the preamble:
```
Unevaluated string literals can appear in
...
• #line directives
```

I'm not sure why it was excluded from the wording, but intuitively this should 
be an unevaluated string literal (?)
@cor3ntin

No action required since this is preserving existing behavior, just bringing 
attention.

https://github.com/llvm/llvm-project/pull/138895
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to