[Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145 Jason Merrill changed: What|Removed |Added Target Milestone|--- |11.5 Resolution|--- |FIXED Status|ASSIGNED|RESOLVED --- Comment #5 from Jason Merrill --- Fixed for 11.5/12.
[Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145 --- Comment #4 from GCC Commits --- The releases/gcc-11 branch has been updated by Jason Merrill : https://gcc.gnu.org/g:f59cfce8ba6612c063a8f55267dc2caee7e0d381 commit r11-11163-gf59cfce8ba6612c063a8f55267dc2caee7e0d381 Author: Jason Merrill Date: Fri Apr 23 16:41:35 2021 -0400 c++: -Wdeprecated-copy and using operator= [PR92145] For the purpose of [depr.impldec] "if the class has a user-declared copy assignment operator", an operator= brought in from a base class with 'using' may be a copy-assignment operator, but it isn't a copy-assignment operator for the derived class. gcc/cp/ChangeLog: PR c++/92145 * class.c (classtype_has_depr_implicit_copy): Check DECL_CONTEXT of operator=. gcc/testsuite/ChangeLog: PR c++/92145 * g++.dg/cpp0x/depr-copy3.C: New test. (cherry picked from commit 37846c42f1f5ac4d9ba190d49c4373673c89c8b5)
[Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145 --- Comment #3 from Nikita Kniazev --- (In reply to Marek Polacek from comment #2) > Fixed? It is fixed on trunk but still presented in every release (since the fix landed 9.4 and 11.2 were released). I assume it was not backported, could you please backport the fix to 9, 10, 11 branches?
[Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- Fixed?
[Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145 --- Comment #1 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:37846c42f1f5ac4d9ba190d49c4373673c89c8b5 commit r12-175-g37846c42f1f5ac4d9ba190d49c4373673c89c8b5 Author: Jason Merrill Date: Fri Apr 23 16:41:35 2021 -0400 c++: -Wdeprecated-copy and using operator= [PR92145] For the purpose of [depr.impldec] "if the class has a user-declared copy assignment operator", an operator= brought in from a base class with 'using' may be a copy-assignment operator, but it isn't a copy-assignment operator for the derived class. gcc/cp/ChangeLog: PR c++/92145 * class.c (classtype_has_depr_implicit_copy): Check DECL_CONTEXT of operator=. gcc/testsuite/ChangeLog: PR c++/92145 * g++.dg/cpp0x/depr-copy3.C: New test.
[Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org Status|NEW |ASSIGNED CC||jason at gcc dot gnu.org
[Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2020-01-29 CC||marxin at gcc dot gnu.org Ever confirmed|0 |1