Article View: gnu.g++.bug
Article #1562Vince Russo's ``nasty'' bug
From: Michael Tiemann
Date: Mon, 19 Dec 1988 09:53
Date: Mon, 19 Dec 1988 09:53
34 lines
1399 bytes
1399 bytes
Can be fixed with these patches.
yahi% diff -c2 cplus-init.c~ cplus-init.c
*** cplus-init.c~ Sat Dec 17 18:39:23 1988
--- cplus-init.c Mon Dec 19 01:49:51 1988
***************
*** 2440,2449 ****
if (basetype && TREE_NEEDS_DESTRUCTOR (basetype))
{
! if (TREE_VIRTUAL (basetype))
! exprstmt = build_tree_list (NULL_TREE, build_virtual_init (basetype, ref));
!
! exprstmt = tree_cons (NULL_TREE,
! build_delete (basetype, ref, auto_delete),
! exprstmt);
}
else
--- 2440,2452 ----
if (basetype && TREE_NEEDS_DESTRUCTOR (basetype))
{
! expr = build_delete (basetype, ref, auto_delete);
! if (expr != error_mark_node)
! {
! exprstmt = build_tree_list (NULL_TREE, expr);
! if (TREE_VIRTUAL (basetype))
! exprstmt = tree_cons (NULL_TREE,
! build_virtual_init (basetype, ref),
! exprstmt);
! }
}
else
yahi%
Michael
Technical Details
Message-ID:
<8812190953.AA00797@yahi.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!YAHI.STANFORD.EDU!mdtShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!YAHI.STANFORD.EDU!mdt From: mdt@YAHI.STANFORD.EDU (Michael Tiemann) Newsgroups: gnu.g++.bug Subject: Vince Russo's ``nasty'' bug Message-ID: <8812190953.AA00797@yahi.Stanford.EDU> Date: 19 Dec 88 09:53:08 GMT Sender: bob@tut.cis.ohio-state.edu Reply-To: tiemann@lurch.stanford.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 33