This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Two identical typedefs not allowed?


Hi!

When I try to compile the following code with gcc-3.0.2...

typedef int adam;
typedef int adam;

... I get the following error:

redefinition.c:2: redefinition of `adam'
redefinition.c:1: `adam' previously declared here

Is there a flag that makes gcc accept this construct?

   Cheers //Johan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]