This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
redefinition of typedef
- To: egcs at cygnus dot com
- Subject: redefinition of typedef
- From: Dai ARAKI <araki at ics dot uci dot edu>
- Date: Thu, 10 Sep 1998 12:25:36 -0700
Hi,
Redefinition of "typedef" (the definitions are the same) in my source code
causes compile error on egcs-1.1 likes,
IntRep/Exception.h: At top level:
In file included from List.cc:22:
IntRep/Exception.h:53:
redefinition of `typedef ERROR (SIR_Note::* sir_note_mptr)(void *)'
IntRep/Note.h:40:
`typedef ERROR (SIR_Note::* sir_note_mptr)(void *)' previously declared here
In file included from List.cc:24:
IntRep/Statement.h:70:
but this code is passed on egcs-1.0.2.
Is this a C/C++ standard or egcs-1.1 bug?
# my gcc version is
Reading specs from C:\Cygnus\B19\H-i386-cygwin32\lib2.91.57\specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
------
Dai Araki
Information and Computer Science
University of California, Irvine
araki@ics.uci.edu