[C++ PATCH] Add __cpp_guaranteed_copy_elision and __cpp_nontype_template_parameter_auto

Jason Merrill jason@redhat.com
Mon Jan 14 20:07:00 GMT 2019


On 1/12/19 8:36 AM, Jakub Jelinek wrote:
> Hi!
> 
> So, from what I can understand, __cpp_guaranteed_copy_elision
> is a C++17 P0135R1 feature test macro for a feature we claim to support,
> and __cpp_nontype_template_parameter_auto is a new name for the
> __cpp_template_auto macro (which doesn't appear anymore in the SD-6 lists,
> but clang++ keeps it for backwards compatibility too).
> 
> Tested on x86_64-linux, ok for trunk?
> 
> 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* c-cppbuiltin.c (c_cpp_builtin): Define __cpp_guaranteed_copy_elision
> 	and __cpp_nontype_template_parameter_auto.  Add a comment that
> 	__cpp_template_auto is deprecated.
> 
> 	* g++.dg/cpp1z/feat-cxx1z.C: Add tests for
> 	__cpp_guaranteed_copy_elision and __cpp_nontype_template_parameter_auto
> 	feature test macros.
> 	* g++.dg/cpp2a/feat-cxx2a.C: Likewise.

OK.

Jason



More information about the Gcc-patches mailing list