C++ PATCH for c++/49528 (omitting destructor for temporary with constant value)

Gabriel Dos Reis gdr@integrable-solutions.net
Sun Jun 26 17:10:00 GMT 2011

On Sun, Jun 26, 2011 at 9:00 AM, Jason Merrill <jason@redhat.com> wrote:
> The constant expression evaluation code was happily replacing an expression
> involving a temporary with its constant value even if the temporary had a
> destructor that needed to be run.

I thought we wanted literal types to have trivial destructor; did that change?

-- Gaby

More information about the Gcc-patches mailing list