Re: [PATCH] testsuite: nodiscard-reason-nonstring.C FAIL in C++26

2023-11-07 Thread Jakub Jelinek
On Tue, Nov 07, 2023 at 10:50:42AM -0500, Marek Polacek wrote: > Tested on x86_64-pc-linux-gnu, ok for trunk? > > -- >8 -- > Since r14-5071, we emit an extra error for this test (the first one): > > nodiscard-reason-nonstring.C:5:13: error: expected string-literal before > numeric constant > nod

[PATCH] testsuite: nodiscard-reason-nonstring.C FAIL in C++26

2023-11-07 Thread Marek Polacek
Tested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- Since r14-5071, we emit an extra error for this test (the first one): nodiscard-reason-nonstring.C:5:13: error: expected string-literal before numeric constant nodiscard-reason-nonstring.C:5:36: error: 'nodiscard' attribute argument must be