Thread View: gnu.g++.bug
1 messages
1 total messages
Started by Michael Tiemann
Mon, 19 Dec 1988 09:53
Vince Russo's ``nasty'' bug
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads