Path: utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!itk.unit.no!ojr From: ojr@itk.unit.no Newsgroups: gnu.g++.bug Subject: A problem with typedef'ed enums Message-ID: <8907031709.AA07251@inge.itk.unit.no> Date: 3 Jul 89 17:07:14 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 72 I'm not quite sure if this is a bug, but anyway: If I use typedefs in enum declaration the compiler has problems when generating overloaded function symbols. The problem goes away if I use an enum declaration of the type: enum e1 {e11, e12}; ----------------------------------------------- Configuaration: config.g++ sun3-os4 g++ version 1.35.1- SUN3 SUNOS 4.0.1 ----------------------------------------------- Repeat by: cat > test1.h < test2.h << EOF2 typedef enum { e21, e22 } e2; EOF2 cat > test1.cc << EOF3 #include "test2.h" void p(e2); overload func; void func(e2 i) { } EOF3 cat > test2.cc < doit <