Re: [PATCH] c++: add feature-test macro for auto(x)

2023-05-15 Thread Patrick Palka via Gcc-patches
On Mon, May 15, 2023 at 11:43 AM Jakub Jelinek wrote: > > On Mon, May 15, 2023 at 11:41:46AM -0400, Jason Merrill via Gcc-patches wrote: > > On 5/15/23 11:24, Patrick Palka wrote: > > > This adds the feature-test macro for PR0849R8, as per > > > https://github.com/cplusplus/CWG/issues/281. > > > >

Re: [PATCH] c++: add feature-test macro for auto(x)

2023-05-15 Thread Jakub Jelinek via Gcc-patches
On Mon, May 15, 2023 at 11:41:46AM -0400, Jason Merrill via Gcc-patches wrote: > On 5/15/23 11:24, Patrick Palka wrote: > > This adds the feature-test macro for PR0849R8, as per > > https://github.com/cplusplus/CWG/issues/281. > > > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk/13?

Re: [PATCH] c++: add feature-test macro for auto(x)

2023-05-15 Thread Jason Merrill via Gcc-patches
On 5/15/23 11:24, Patrick Palka wrote: This adds the feature-test macro for PR0849R8, as per https://github.com/cplusplus/CWG/issues/281. Tested on x86_64-pc-linux-gnu, does this look OK for trunk/13? OK. gcc/c-family/ChangeLog: * c-cppbuiltin.cc (c_cpp_builtins): Predefine __cpp_au

[PATCH] c++: add feature-test macro for auto(x)

2023-05-15 Thread Patrick Palka via Gcc-patches
This adds the feature-test macro for PR0849R8, as per https://github.com/cplusplus/CWG/issues/281. Tested on x86_64-pc-linux-gnu, does this look OK for trunk/13? gcc/c-family/ChangeLog: * c-cppbuiltin.cc (c_cpp_builtins): Predefine __cpp_auto_cast for C++23. gcc/testsuite/Change