redefinition of typedef

Dai ARAKI araki@ics.uci.edu
Thu Sep 10 16:02:00 GMT 1998


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



More information about the Gcc mailing list