[Bug preprocessor/89380] Multiple items in brace not working on nested macro

2019-02-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89380 --- Comment #7 from Jonathan Wakely --- (In reply to Andrew Pinski from comment #1) > I think these kind of questions should be handled in gcc-help@ rather than > here. Maybe in a standard C forum too. ^^ this, "How do I do funky things with t

[Bug preprocessor/89380] Multiple items in brace not working on nested macro

2019-02-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89380 --- Comment #6 from Andrew Pinski --- (In reply to mdblack98 from comment #5) > Why can't it be fixed by not counting commas between braces? That seems to > be the problem. Because then GCC will break some valid C code :). I think you should m

[Bug preprocessor/89380] Multiple items in brace not working on nested macro

2019-02-17 Thread mdblack98 at yahoo dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89380 --- Comment #5 from mdblack98 at yahoo dot com --- Why can't it be fixed by not counting commas between braces? That seems to be the problem.

[Bug preprocessor/89380] Multiple items in brace not working on nested macro

2019-02-17 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89380 --- Comment #4 from Andreas Schwab --- You can do dirty things with hiding the comma behind a macro, but don't do this at home, kids.

[Bug preprocessor/89380] Multiple items in brace not working on nested macro

2019-02-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89380 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug preprocessor/89380] Multiple items in brace not working on nested macro

2019-02-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89380 --- Comment #2 from Andrew Pinski --- https://stuff.mit.edu/afs/athena/project/rhel-doc/3/rhel-cpp-en-3/macro-pitfalls.html

[Bug preprocessor/89380] Multiple items in brace not working on nested macro

2019-02-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89380 --- Comment #1 from Andrew Pinski --- I think these kind of questions should be handled in gcc-help@ rather than here. Maybe in a standard C forum too.