Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!itk.unit.no!hcl From: hcl@itk.unit.no Newsgroups: gnu.g++.bug Subject: bug in desctructor in void function Message-ID: <8905081721.AA12350@randi.itk.unit.no> Date: 8 May 89 17:22:27 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 32 The following program makes G++ 1.34.2 dump core after signal 6 on a SUN 3/60 running SUNOS4.0.1. The core is dumped when G++ is trying to process the return statement. ---------------------------------------------------------------- struct a { short x; short y; ~a () {} }; void main() { a y; a x; if (x.x < y.x) return; } ------------------------------------------------------------ Best regards Ornulf Jan Rodseth Telephone SINTEF Dep. of Automatic Control (+47 7) 594351 Direct N-7034 TRONDHEIM (+47 7) 594375 Switchboard NORWAY (+47 7) 594399 Fax ojr%regtek.unit.uninett@tor.nta.no (EAN) ojr@itk.unit.no (ARPA)