Re: [PATCH] c++: disable -Wnonnull in unevaluated context [PR115580]

2025-03-04 Thread Jason Merrill
On 3/4/25 3:26 PM, Marek Polacek wrote: Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- This PR complains that we issue a -Wnonnull even in a decltype. Since we can't use cp_unevaluated_operand in c-common.cc, this Would it make sense to check c_inhibit_evaluation_warning

[PATCH] c++: disable -Wnonnull in unevaluated context [PR115580]

2025-03-04 Thread Marek Polacek
Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? -- >8 -- This PR complains that we issue a -Wnonnull even in a decltype. Since we can't use cp_unevaluated_operand in c-common.cc, this fix targets even -Wformat and -Wrestrict. I think that's fine. PR c++/115580 gcc/cp/Change