This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for c++/49528 (omitting destructor for temporary with constant value)
- From: Jason Merrill <jason at redhat dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>
- Date: Sun, 26 Jun 2011 13:09:45 -0400 (EDT)
- Subject: Re: C++ PATCH for c++/49528 (omitting destructor for temporary with constant value)
No, that's still the case, just getting confused by the need to also support constant initialization of non-literal types.
Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
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