Path: utzoo!telly!ddsw1!lll-winken!killer!tness7!texbell!bigtex!natinst!cs.utexas.edu!tut.cis.ohio-state.edu!mailrus!rutgers!ucsd!orion.cf.uci.edu!paris.ics.uci.edu!crimee.ics.uci.edu!schmidt From: schmidt@crimee.ics.uci.edu (Doug Schmidt) Newsgroups: gnu.g++.bug Subject: Re: GNU C++ 1.27 does not call destructors for temporaries Keywords: compiler temporaries, constructors, destructors Message-ID: <769@paris.ics.uci.edu> Date: 6 Oct 88 22:58:16 GMT References: <16551@shemp.CS.UCLA.EDU> Sender: news@paris.ics.uci.edu Reply-To: Doug Schmidt Distribution: gnu Organization: University of California, Irvine - Dept of ICS Lines: 13 In article <16551@shemp.CS.UCLA.EDU> casey@CS.UCLA.EDU (Casey Leedom) writes: [ code that breaks g++ 1.27 ] > >inline foo operator+(foo &a, foo &b) /* FOO OPERATOR + */ >{ > return(*a.store + *b.store); >} > If you omit the inline on this function the destructor gets called correctly. (But it is still seems like a bug!) Doug