public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/86032] non standard copy operator is used for empty class
       [not found] <bug-86032-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-23 23:25 ` pinskia at gcc dot gnu.org
  2021-07-23 23:29 ` pinskia at gcc dot gnu.org
  2021-07-28  2:49 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-23 23:25 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |wrong-code
   Last reconfirmed|                            |2021-07-23
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
Here is a run time test:
struct Empty
{
        Empty& operator=(const Empty&) = default;
};

template<typename T>
class ShowType;

template<>
struct ShowType<Empty&>{int t = 0;};
template<>
struct ShowType<Empty>{int t = 1;};

int main()
{
        ShowType<decltype(Empty() = Empty())> example;
    return example.t;
}
---- CUT ----
A compile time test would just remove ShowType<Empty> specialization.

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

* [Bug c++/86032] non standard copy operator is used for empty class
       [not found] <bug-86032-4@http.gcc.gnu.org/bugzilla/>
  2021-07-23 23:25 ` [Bug c++/86032] non standard copy operator is used for empty class pinskia at gcc dot gnu.org
@ 2021-07-23 23:29 ` pinskia at gcc dot gnu.org
  2021-07-28  2:49 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-23 23:29 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |4.5.3, 4.7.1
      Known to work|                            |4.4.7

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Broke between 4.4.7 and 4.5.3.

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

* [Bug c++/86032] non standard copy operator is used for empty class
       [not found] <bug-86032-4@http.gcc.gnu.org/bugzilla/>
  2021-07-23 23:25 ` [Bug c++/86032] non standard copy operator is used for empty class pinskia at gcc dot gnu.org
  2021-07-23 23:29 ` pinskia at gcc dot gnu.org
@ 2021-07-28  2:49 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-28  2:49 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is dup of bug 54319 which was just debugging.

*** This bug has been marked as a duplicate of bug 54319 ***

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

end of thread, other threads:[~2021-07-28  2:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-86032-4@http.gcc.gnu.org/bugzilla/>
2021-07-23 23:25 ` [Bug c++/86032] non standard copy operator is used for empty class pinskia at gcc dot gnu.org
2021-07-23 23:29 ` pinskia at gcc dot gnu.org
2021-07-28  2:49 ` pinskia 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).