[Bug c/114773] Raw string literals are not supported in C89 mode

2024-04-19 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114773

Xi Ruoyao  changed:

   What|Removed |Added

 Resolution|FIXED   |INVALID

--- Comment #6 from Xi Ruoyao  ---
Oops, the mouse scroll wheel is too sensitive and I selected the wrong
resolution :(.

[Bug c/114773] Raw string literals are not supported in C89 mode

2024-04-19 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114773

Xi Ruoyao  changed:

   What|Removed |Added

 CC||xry111 at gcc dot gnu.org
 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #5 from Xi Ruoyao  ---
Then this isn't a valid bug report.

[Bug c/114773] Raw string literals are not supported in C89 mode

2024-04-18 Thread rl.alt.accnt at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114773

--- Comment #4 from Sirraide  ---
Yeah, we figured that that was why they’re not supported in `-gnu89` mode, but
I thought I’d ask just to be sure.

[Bug c/114773] Raw string literals are not supported in C89 mode

2024-04-18 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114773

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek  ---
-std=gnu89 is meant for really old programs, and the raw string literal support
changes behavior, so it isn't a pure extension on what wasn't valid before,
e.g. consider
#define R
#define b
const char * square(void) {
return R"(a"b"a)";
}
in -std=c89 or -std=gnu89 this is return "(aa)"; while in -std=gnu99 return
"a\"b\"a";

[Bug c/114773] Raw string literals are not supported in C89 mode

2024-04-18 Thread rl.alt.accnt at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114773

--- Comment #2 from Sirraide  ---
Thanks!

[Bug c/114773] Raw string literals are not supported in C89 mode

2024-04-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114773

--- Comment #1 from Andrew Pinski  ---
https://gcc.gnu.org/gcc-4.5/changes.html

Looks like it is on purpose:
C++0x raw strings are supported for C++ and for C with -std=gnu99.



https://inbox.sourceware.org/gcc-patches/20080912132007.ga9...@hs20-bc2-1.build.redhat.com/