Two identical typedefs not allowed?

Johan Walles
Thu Nov 15 11:34:00 GMT 2001


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

More information about the Gcc-help mailing list