This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA (6): C++ PATCH for c++/70690, wrong code in tcmalloc
- 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: Mon, 18 Apr 2016 21:53:36 +0200
- Subject: Re: RFA (6): C++ PATCH for c++/70690, wrong code in tcmalloc
- Authentication-results: sourceware.org; auth=none
- References: <57152E6B dot 80509 at redhat dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Apr 18, 2016 at 02:58:51PM -0400, Jason Merrill wrote:
> My change to type_has_constexpr_default_constructor broke build_vec_init,
> which asserts that it implies that default-initialization is the same as
> value-initialization, which is not the case for the "maybe constexpr" case.
> So this patch reverts the change and adds a new "maybe constexpr" entry
> point when we don't need a firm answer.
>
> Tested x86_64-pc-linux-gnu, applying to trunk. OK for 6.1?
Ok, thanks.
> commit 695043a6eb769f6510c4d495dacd5d70514c89ab
> Author: Jason Merrill <jason@redhat.com>
> Date: Mon Apr 18 14:29:19 2016 -0400
>
> PR c++/70690
>
> PR c++/70528
> * class.c (type_maybe_constexpr_default_constructor): New.
> (type_has_constexpr_default_constructor): Revert.
Jakub