[PATCH] c++: Allow -Wvirtual-move-assign to be more easily ignored

2025-05-13 Thread Owen Avery
location of a base class's move assignment operator. gcc/testsuite/ChangeLog: * g++.dg/warn/ignore-virtual-move-assign.C: New test. Co-authored-by: Jason Merrill Signed-off-by: Owen Avery --- gcc/cp/method.cc | 4 +- .../g++.dg/warn/ignore-vi

[PATCH] c++: Allow -Wvirtual-move-assign to be more easily ignored

2025-05-12 Thread Owen Avery
hored-by: Jason Merrill Signed-off-by: Owen Avery --- gcc/cp/method.cc | 4 +- .../g++.dg/warn/ignore-virtual-move-assign.C | 45 +++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/g++.dg/warn/ignore-virtual

Re: [PATCH] c++: Add attribute handles_virtual_move_assign

2025-05-11 Thread Owen Avery
Yeah, that looks way simpler. Should I add you as co-author on the patch? On 4/28/25 22:13, Jason Merrill wrote: On 4/28/25 5:07 PM, Owen Avery wrote: As far as I can tell, that would need to be applied to every class which virtually inherits from such a base class, rather than just the base

Re: [PATCH] c++: Add attribute handles_virtual_move_assign

2025-04-27 Thread Owen Avery
I'm open to renaming the attribute and/or test file, of course.

[PATCH] c++: Add attribute handles_virtual_move_assign

2025-04-27 Thread Owen Avery
bute list. gcc/ChangeLog: * doc/extend.texi (C++-Specific Variable, Function, and Type Attributes): Document handles_virtual_move_assign. gcc/testsuite/ChangeLog: * g++.dg/warn/Wvirtual-move-assign-1.C: New test. Signed-off-by: Owen Avery --- g