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

redefinition of typedef


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


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