Xref: utzoo gnu.g++.help:154 comp.lang.c++:10454 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CS.UTAH.EDU!caeco!olyis!sol!rwk From: caeco!olyis!sol!rwk@CS.UTAH.EDU (Richard W. Kreutzer) Newsgroups: gnu.g++.help,comp.lang.c++ Subject: Incompatible changes in C++ Message-ID: <9011192338.AA05767@sol.> Date: 19 Nov 90 23:38:18 GMT Sender: daemon@tut.cis.ohio-state.edu Followup-To: gnu.g++.help Organization: Gatewayed from the GNU Project mailing list help-g++@prep.ai.mit.edu Lines: 37 I am not sure, but I think the handling of enum tags may be related to the problem you (rms) describe concerning struct tags. The following code will not compile using g++-1.37.1. class foo { private: enum Number {ONE = 1, TWO}; static const NUM = ONE; public: int test(); }; typedef enum {THREE = 3, FOUR} Number; int foo::test() { Number num = ONE; printf("test: num=%d\n", num); printf("test: NUM=%d\n", NUM); } const NUM = 2; main() { Number num = THREE; foo a; a.test(); } G++ says the typedef for Number is a redefinition. -- Richard (Dick) W. Kreutzer UUCP: cs.utah.edu!olyis!rwk Mail: Olympus Software, Inc.; 1333 E 9400 S; Sandy, UT 84093 (USA) Phone: +1 801 572 1610