This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/29934] New: duplicate typedef produces error message containing a bad character.
- From: "bradley-k-gnu dot e2d0b7 at bradley dot csail dot mit dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2006 20:15:13 -0000
- Subject: [Bug c/29934] New: duplicate typedef produces error message containing a bad character.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Start with this code
---- cut here to start foo.c ----
typedef typedef struct abc ABC;
---- cut here to end foo.c ----
Note the duplicate typedef. This program contains an error.
When I do
gcc foo.c -c
I get
foo.c:1 error: duplicate <ahat>
Where <ahat> is really some sort of funny character that looks like an "a" with
an accent above it.
I am guessing that the format statement is malformed or that the string is
uninitialized. It should probably say
foo.c: 1 error: duplicate typedef
I am using gcc-4.1.1-30 from fedora core 6.
gcc -v says
gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)
This is on an AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ running Gnu/Linux.
--
Summary: duplicate typedef produces error message containing a
bad character.
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bradley-k-gnu dot e2d0b7 at bradley dot csail dot mit
dot edu
GCC target triplet: x86_64-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29934