[Bug preprocessor/28388] stringify (#) operator broken

2023-02-06 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28388 --- Comment #8 from Jonathan Wakely --- r239175 seemed to fix it: "On-demand locations within string-literals"

[Bug preprocessor/28388] stringify (#) operator broken

2023-02-06 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28388 Richard Biener changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug preprocessor/28388] stringify (#) operator broken

2007-10-29 Thread manu at gcc dot gnu dot org
--- Comment #6 from manu at gcc dot gnu dot org 2007-10-29 19:48 --- The infinite loop is still present in GCC 4.3 with #define A(b) #b A(\ \\) -- manu at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug preprocessor/28388] stringify (#) operator broken

2006-07-14 Thread sabre at nondot dot org
--- Comment #5 from sabre at nondot dot org 2006-07-15 05:26 --- Okay, I don't care who does or doesn't do it. :) It doesn't get diagnosed in -E mode, though it's in clear violation of C99 6.10.3.2p2. -Chris -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28388

[Bug preprocessor/28388] stringify (#) operator broken

2006-07-14 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2006-07-15 05:25 --- (In reply to comment #3) > Right, but that is presumably the parser, not the preprocessor doing it... so > it is a bug in the preprocessor. Nope, that is the preprocessor doing it, you will notice the column field w

[Bug preprocessor/28388] stringify (#) operator broken

2006-07-14 Thread sabre at nondot dot org
--- Comment #3 from sabre at nondot dot org 2006-07-15 05:23 --- > Also without -E, we do warn about the second one: > t.c:2:7: warning: unknown escape sequence '\`' Right, but that is presumably the parser, not the preprocessor doing it... so it is a bug in the preprocessor. -Chris

[Bug preprocessor/28388] stringify (#) operator broken

2006-07-14 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-07-15 05:21 --- Also without -E, we do warn about the second one: t.c:2:7: warning: unknown escape sequence '\`' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28388

[Bug preprocessor/28388] stringify (#) operator broken

2006-07-14 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-15 05:21 --- Well it is even worse than that, with the first one, we go into an infinite loop when you don't use -E. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -