This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH for P0135, C++17 guaranteed copy elision


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]