Path: utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!orion.cf.uci.edu!uci-ics!beaver.ics.uci.edu!schmidt From: schmidt@beaver.ics.uci.edu (Doug Schmidt) Newsgroups: gnu.g++.bug Subject: Re: Problems with Gnu's own examples ??? Message-ID: <8915@paris.ics.uci.edu> Date: 10 Mar 89 03:46:07 GMT References: <8903092200.AA05384@prep.ai.mit.edu> Sender: news@paris.ics.uci.edu Reply-To: Doug Schmidt Distribution: gnu Organization: University of California at Irvine: ICS Dept. Lines: 28 In article <8903092200.AA05384@prep.ai.mit.edu> T.Day@PURPLE.CS.UCL.AC.UK (Tim Day) writes: ++ I can't get the following to compile (or fail cleanly) under g++ version 1.32.0 ++ (is essentially the example from ``naming an expression's type'' in the ++ manual). ++ ------- ++ #include ++ ++ #define max(a,b) \ ++ ({typedef _ta = (a),_tb = (b); \ ++ _ta _a = (a);_tb _b = (b); \ ++ _a > _b ? _a : _b; }) ++ ++ main() ++ { int a=1,b=2; ++ cout << max(a,b); // Here ++ ++ exit(0); ++ } This bug should be fixed with 1.34. It resulted from a typo in cplus-parse.y. Doug -- schmidt@ics.uci.edu (ARPA) | Per me si va nella citta' dolente. office: (714) 856-4043 | Per me si va nell'eterno dolore. | Per me si va tra la perduta gente. | Lasciate ogni speranza o voi ch'entrate.