This is the mail archive of the gcc-bugs@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]

[Bug c/29934] New: duplicate typedef produces error message containing a bad character.


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


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