This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH for P0135, C++17 guaranteed copy elision
- From: Pedro Alves <palves at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Cc: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- Date: Thu, 6 Oct 2016 00:15:52 +0100
- Subject: Re: C++ PATCH for P0135, C++17 guaranteed copy elision
- Authentication-results: sourceware.org; auth=none
- References: <CADzB+2nUgkOKbdMM_XXL4e53HQ712TLmRszvwEJQmm591UobaQ@mail.gmail.com>
On 10/05/2016 11:57 PM, Jason Merrill wrote:
> --- a/gcc/c-family/c-opts.c
> +++ b/gcc/c-family/c-opts.c
> @@ -1579,6 +1579,7 @@ set_std_cxx1z (int iso)
> flag_isoc94 = 1;
> flag_isoc99 = 1;
> flag_isoc11 = 1;
> + flag_elide_constructors = 2;
> cxx_dialect = cxx1z;
> lang_hooks.name = "GNU C++14"; /* Pretend C++14 till standarization. */
Does -fno-elide-constructors have any effect in C++17 mode?
Should it perhaps be an error, or ignored?
Thanks,
Pedro Alves