Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!milano!elysium!downing From: downing@elysium.sw.mcc.com (Glenn Downing) Newsgroups: comp.lang.c++ Subject: Typedef inside of a class definition. Message-ID: <3748@elysium.sw.mcc.com> Date: 7 May 90 12:33:29 GMT Organization: MCC, Austin, TX Lines: 15 Is it a bug in the GNU 1.37 compiler that it does not allow me to define a typedef within a class definition and have its scope be global? The Sun compiler does define it with global scope. class foo {typedef bar int;}; main() {bar i = 2;} // bar is not accessible here with GNU, but is with SUN -- Glenn Downing (downing@mcc.com) Microelectronics Computer Corporation (MCC) 3500 West Balcones Center Drive Austin, TX 78759-6509