Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!att!mcdchg!laidbak!obdient!gill!paul From: paul@gill.UUCP (Paul Nordstrom) Newsgroups: comp.lang.c++ Subject: Re: casts and references in C++ Message-ID: <918@gill.UUCP> Date: 4 Jun 90 17:57:41 GMT References: <2661674A.8793@paris.ics.uci.edu> Reply-To: paul@gill.UUCP (Paul Nordstrom) Organization: Gill & Co., L.P., San Francisco Lines: 27 In article <2661674A.8793@paris.ics.uci.edu> schmidt@crimee.ics.uci.edu (Doug Schmidt) writes: >Hi, > > The following program illustrates an inconsistency between g++ and >cfront in their handling of references. I am curious to know which >compiler gets it ``right.'' > > Doug >-- >schmidt@ics.uci.edu (ARPA) | office: (714) 856-4043 And if you compile it with Oregon C++ 2.0 you get: /tmp % occ x.c -o x /tmp % ./x I get printed with g++ but *not* with cfront 2.0. /tmp % Now all we need is a compiler that prints neither! :-) Maybe Zortech or TC++. :-) -- Paul Nordstrom Gill & Co., L.P. uunet!gill!paul