public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
       [not found] <bug-92145-4@http.gcc.gnu.org/bugzilla/>
@ 2021-04-23 20:40 ` jason at gcc dot gnu.org
  2021-04-27 19:44 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2021-04-23 20:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145

Jason Merrill <jason at gcc dot gnu.org> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
       [not found] <bug-92145-4@http.gcc.gnu.org/bugzilla/>
  2021-04-23 20:40 ` [Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators jason at gcc dot gnu.org
@ 2021-04-27 19:44 ` cvs-commit at gcc dot gnu.org
  2021-11-23  1:05 ` mpolacek at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-27 19:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:37846c42f1f5ac4d9ba190d49c4373673c89c8b5

commit r12-175-g37846c42f1f5ac4d9ba190d49c4373673c89c8b5
Author: Jason Merrill <jason@redhat.com>
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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
       [not found] <bug-92145-4@http.gcc.gnu.org/bugzilla/>
  2021-04-23 20:40 ` [Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators jason at gcc dot gnu.org
  2021-04-27 19:44 ` cvs-commit at gcc dot gnu.org
@ 2021-11-23  1:05 ` mpolacek at gcc dot gnu.org
  2021-11-24 13:59 ` nok.raven at gmail dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-11-23  1:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
       [not found] <bug-92145-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2021-11-23  1:05 ` mpolacek at gcc dot gnu.org
@ 2021-11-24 13:59 ` nok.raven at gmail dot com
  2023-12-20 17:41 ` cvs-commit at gcc dot gnu.org
  2023-12-20 17:42 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: nok.raven at gmail dot com @ 2021-11-24 13:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145

--- Comment #3 from Nikita Kniazev <nok.raven at gmail dot com> ---
(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?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
       [not found] <bug-92145-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2021-11-24 13:59 ` nok.raven at gmail dot com
@ 2023-12-20 17:41 ` cvs-commit at gcc dot gnu.org
  2023-12-20 17:42 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-12-20 17:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145

--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:

https://gcc.gnu.org/g:f59cfce8ba6612c063a8f55267dc2caee7e0d381

commit r11-11163-gf59cfce8ba6612c063a8f55267dc2caee7e0d381
Author: Jason Merrill <jason@redhat.com>
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)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators
       [not found] <bug-92145-4@http.gcc.gnu.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2023-12-20 17:41 ` cvs-commit at gcc dot gnu.org
@ 2023-12-20 17:42 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2023-12-20 17:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92145

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.5
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 11.5/12.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-20 17:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-92145-4@http.gcc.gnu.org/bugzilla/>
2021-04-23 20:40 ` [Bug c++/92145] -Wdeprecated-copy false-positive when inheriting base assignment operators jason at gcc dot gnu.org
2021-04-27 19:44 ` cvs-commit at gcc dot gnu.org
2021-11-23  1:05 ` mpolacek at gcc dot gnu.org
2021-11-24 13:59 ` nok.raven at gmail dot com
2023-12-20 17:41 ` cvs-commit at gcc dot gnu.org
2023-12-20 17:42 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).