https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83449
Bug ID: 83449 Summary: incorrect ## preprocessing with string Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: preprocessor Assignee: unassigned at gcc dot gnu.org Reporter: asif_bahrainwala at hotmail dot com Target Milestone: --- g++ --version g++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The below code does not compile, compiles on VS2017 though #include <iostream> using namespace std; #define STRMAX 1024 #define A(a,b) a ## b int main() { char *i=A("a","b"); cout<<i; return 0; }