[gnu.g++.bug] bug in desctructor in void function

hcl@itk.unit.no (05/09/89)

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)