https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118599
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Summary|Incorrect diagnostic on |unknown escape sequence
|multiline string literal |diagnostic does not have
| |decent line info
Ever confirmed|0 |1
Component|c++ |preprocessor
Last reconfirmed| |2025-01-22
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This has nothing to do with multiline string constants but rather the
preprocessor is not including the correct info for the string constant in
general for the warning.
Now there is a slight difference between the 2 front-ends.
C++ front-end underlines all of the second string while the C just points to
the token after the string.