This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Two identical typedefs not allowed?
- From: Johan Walles <johan dot walles at appeal dot se>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 22 Nov 2001 16:47:52 +0100
- Subject: 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