Re: [PATCH] c++: Fix up maybe_unused attribute handling [PR110345]

2024-12-19 Thread Jason Merrill
On 12/18/24 10:53 AM, Jakub Jelinek wrote: On Tue, Dec 17, 2024 at 05:54:36PM -0500, Jason Merrill wrote: On 9/5/24 3:27 AM, Jakub Jelinek wrote: When adding test coverage for maybe_unused attribute, I've run into several things: 1) similarly to deprecated attribute, the attribute shouldn't ped

Re: [PATCH] c++: Fix up maybe_unused attribute handling [PR110345]

2024-12-18 Thread Jakub Jelinek
On Tue, Dec 17, 2024 at 05:54:36PM -0500, Jason Merrill wrote: > On 9/5/24 3:27 AM, Jakub Jelinek wrote: > > When adding test coverage for maybe_unused attribute, I've run into > > several things: > > 1) similarly to deprecated attribute, the attribute shouldn't pedantically > > appertain to ty

Re: [PATCH] c++: Fix up maybe_unused attribute handling [PR110345]

2024-12-17 Thread Jason Merrill
On 9/5/24 3:27 AM, Jakub Jelinek wrote: Hi! When adding test coverage for maybe_unused attribute, I've run into several things: 1) similarly to deprecated attribute, the attribute shouldn't pedantically appertain to types other than class/enumeration definitions 2) similarly to deprecated at

[PATCH] c++: Fix up maybe_unused attribute handling [PR110345]

2024-09-05 Thread Jakub Jelinek
Hi! When adding test coverage for maybe_unused attribute, I've run into several things: 1) similarly to deprecated attribute, the attribute shouldn't pedantically appertain to types other than class/enumeration definitions 2) similarly to deprecated attribute, the attribute shouldn't pedantical