This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Lifetime bug in temporaries


>>>>> «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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]