🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1716

Re: Problems with Gnu's own examples ???

#1716
From: Doug Schmidt
Date: Fri, 10 Mar 1989 03:46
28 lines
1465 bytes
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 <stream.h>
++ 
++ #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.
Technical Details
Message-ID: <8915@paris.ics.uci.edu>
Path: arc1-ca.pugleaf.net!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
References: <8903092200.AA05384@prep.ai.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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 <schmidt@beaver.ics.uci.edu>
Distribution: gnu
Organization: University of California at Irvine: ICS Dept.
Lines: 28