This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
warning: pasting would not give a valid preprocessing token
- To: "Gcc-Bugs at Gcc dot Gnu. Org" <gcc-bugs at gcc dot gnu dot org>
- Subject: warning: pasting would not give a valid preprocessing token
- From: "Alex Feldman" <al dot feldman at sangoma dot com>
- Date: Tue, 21 Aug 2001 09:22:44 -0400
Hello,
I compiling the follow program on Red-Hat Linux 7.0 with gcc 2.96.
#define macro_test(x) tmp.##x++
typedef struct {
int test;
} test_t;
int main()
{
test_t tmp;
tmp.test = 0;
macro_test(test);
}
when I compiled this program with gcc I received the following warning:
test.c:11:18: warning: pasting would not give a valid preprocessing token
What's wrong with this macro and what this warning means?
Thank you.
Alex