Re: [PATCH 1/2] c++: add -Wdeprecated-literal-operator [CWG2521]

2024-11-10 Thread Andrew Pinski
On Thu, Oct 3, 2024 at 9:42 AM Jason Merrill wrote: > > Tested x86_64-pc-linux-gnu, applying to trunk. > > -- 8< -- > > C++23 CWG issue 2521 (https://wg21.link/cwg2521) deprecates user-defined > literal operators declared with the optional space between "" and the > suffix. > > Many testcases used

Re: [PATCH 1/2] c++: add -Wdeprecated-literal-operator [CWG2521]

2024-10-04 Thread Jason Merrill
On 10/4/24 8:22 AM, Jakub Jelinek wrote: On Fri, Oct 04, 2024 at 12:19:03PM +0200, Jakub Jelinek wrote: Though, maybe the tests should have both the deprecated syntax and the non-deprecated one... Here is a variant of the patch which does that. Tested on x86_64-linux and i686-linux, ok for tr

Re: [PATCH 1/2] c++: add -Wdeprecated-literal-operator [CWG2521]

2024-10-04 Thread Jakub Jelinek
On Fri, Oct 04, 2024 at 12:19:03PM +0200, Jakub Jelinek wrote: > Though, maybe the tests should have both the deprecated syntax and the > non-deprecated one... Here is a variant of the patch which does that. Tested on x86_64-linux and i686-linux, ok for trunk? 2024-10-04 Jakub Jelinek

Re: [PATCH 1/2] c++: add -Wdeprecated-literal-operator [CWG2521]

2024-10-04 Thread Jakub Jelinek
On Thu, Oct 03, 2024 at 12:39:59PM -0400, Jason Merrill wrote: > * g++.dg/cpp26/unevalstr1.C This patch didn't touch unevalstr2.C which now FAILs because of the new warnings in C++23 mode (the testcase is target { c++11 && c++23_down }, so isn't run in C++26). The intent in both of those te

[PATCH 1/2] c++: add -Wdeprecated-literal-operator [CWG2521]

2024-10-03 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- C++23 CWG issue 2521 (https://wg21.link/cwg2521) deprecates user-defined literal operators declared with the optional space between "" and the suffix. Many testcases used that syntax; I removed the space from most of them, and added C++23 w