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: Jakub Jelinek <jakub at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 26 Jun 2011 18:50:56 +0200
- Subject: Re: C++ PATCH for c++/49528 (omitting destructor for temporary with constant value)
- References: <4E073B73.7010704@redhat.com> <4E073E83.5080106@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Jun 26, 2011 at 10:13:23AM -0400, Jason Merrill wrote:
> On 06/26/2011 10:00 AM, Jason Merrill wrote:
> >Tested x86_64-pc-linux-gnu, applying to trunk. Jakub, should this go
> >into 4.6.1 or .2?
>
> I think it's fine to wait for .2, since a class with a non-trivial
> destructor is likely to also have a non-trivial, non-constexpr
> constructor, which would prevent A() from having a constant value.
Yeah, I'd prefer to defer it for 4.6.2 and be able to roll the release tomorrow.
Jakub