Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!elroy!orion.cf.uci.edu!paris.ics.uci.edu!siam.ics.uci.edu!schmidt From: schmidt@siam.ics.uci.edu (Doug Schmidt) Newsgroups: comp.lang.c++ Subject: Re: inline Message-ID: <1752@paris.ics.uci.edu> Date: 18 Dec 88 20:39:01 GMT References: <10469@watdragon.waterloo.edu> Sender: news@paris.ics.uci.edu Reply-To: Doug Schmidt Distribution: comp Organization: University of California, Irvine - Dept of ICS Lines: 17 In article <10469@watdragon.waterloo.edu> akwright@watdragon.waterloo.edu (Andrew K. Wright) writes: >Q. Are there any other C++ compilers out there that attempt to "solve" > the problem? (any compiler which simply ignores the inline keyword > is trivially a member of this class) > G++ 1.31 gets this right, ( it outputs 3 and 5, rather than 3 and 10 ) and it appears to generate calls to ``increment'' as inlines, too. If you are interested in seeing how this is done check out the 1.31 source code! 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.