[Bug preprocessor/83449] incorrect ## preprocessing with string

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

[Bug preprocessor/83449] incorrect ## preprocessing with string

2017-12-17 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83449 --- Comment #2 from Andrew Pinski --- GCC is correct here. Strings don't paste together.

[Bug preprocessor/83449] incorrect ## preprocessing with string

2017-12-17 Thread asif_bahrainwala at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83449 --- Comment #1 from Asif --- g++ main.cpp main.cpp:10:15: error: pasting ""a"" and ""b"" does not give a valid preprocessing token char *i=A("a","b"); ^ main.cpp:6:16: note: in definition of macro ‘A’ #define A(a,b) a ## b