Lifetime bug in temporaries
Gabriel Dos Reis
Gabriel.Dos-Reis@dptmaths.ens-cachan.fr
Fri Mar 27 13:49:00 GMT 1998
>>>>> ëMarcû, Marc Espie <espie@quatramaran.ens.fr> wrote:
[...]
Marc> I've managed to solve the problem using actual copies in Expr and SumExpr.
Marc> This leads to introducing a VHandle class to avoid copying Vectors. This
Marc> one doesn't cause any trouble as the only Vectors I have are not temporaries.
I don't think it is necessary to store actual objects in SumExpr: you
can keep on storing references to operands in a SumExpr. There is a
slight difference between an Expr and a SumExpr.
-- Gaby
More information about the Gcc-bugs
mailing list