Xref: utzoo comp.lang.c++:6404 gnu.g++:641 gnu.g++.bug:1438 Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!milano!cadillac!pebbles!ned From: ned@pebbles.cad.mcc.com (Ned Nowotny) Newsgroups: comp.lang.c++,gnu.g++,gnu.g++.bug Subject: Typedefs in class declarations. Keywords: typedef class Message-ID: <6016@cadillac.CAD.MCC.COM> Date: 10 Feb 90 00:29:56 GMT Sender: news@cadillac.CAD.MCC.COM Reply-To: ned@MCC.COM (Ned Nowotny) Organization: MCC CAD Program, Austin, TX Lines: 12 References: What, if anything, is special about typedefs which are enclosed within a class declaration? G++ 1.36.4 does not recognize typedef names outside the scope of an enclosing class declaration and I am not enough of a language lawyer to know whether this is really a problem. I do know, however, that you can't declare something as a classname::typedef. Therefore, it would seem that G++'s behavior is either a bug, or typedefs within class declarations are nearly useless. Ned Nowotny, MCC CAD Program, Box 200195, Austin, TX 78720 Ph: (512) 338-3715 ARPA: ned@mcc.com UUCP: ...!cs.utexas.edu!milano!cadillac!ned ------------------------------------------------------------------------------- "We have ways to make you scream." - Intel advertisement in the June 1989 DDJ.