cpp problem in recent snapshots, alpha linux
Robert Read
rread@turbolinux.com
Thu Mar 2 14:00:00 GMT 2000
One of the include files in XFree86 does something like this:
#define ProjName proj
#define Concat3(a,b,c) a##b##c
#define IncFile Concat3(<,ProjName,.h>)
#include IncFile
Notice the < and > in the macro. Is there something wrong with this
code? It works fine on older gcc, but not with recent snapshots.
The error I'm getting is:
$ gcc -E t1.h
t1.h:4:16: macro `Concat3' used with just one arg
t1.h:4:16: ,ProjName,.h: No such file or directory
It looks like cpp is treating the bare < and > differently now.
Running on Alpha Linux, snapshot 20000228.
robert
More information about the Gcc
mailing list