public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/84494] Invalid constexpr with default assignment operator
       [not found] <bug-84494-4@http.gcc.gnu.org/bugzilla/>
@ 2021-02-01 13:43 ` ppalka at gcc dot gnu.org
  2021-02-01 13:49 ` cvs-commit at gcc dot gnu.org
  2021-02-01 13:53 ` ppalka at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-02-01 13:43 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

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

--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Reduced testcase:

struct X {
  constexpr X() = default;
  constexpr X(int x) : m_value(x) {}
  constexpr X& operator=(const X &o) = default;
  int m_value {};
};

static_assert((X() = X(10)).m_value == 10);

Looks like GCC 10 and later correctly accept this testcase, ever since r10-5143
apparently.

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

* [Bug c++/84494] Invalid constexpr with default assignment operator
       [not found] <bug-84494-4@http.gcc.gnu.org/bugzilla/>
  2021-02-01 13:43 ` [Bug c++/84494] Invalid constexpr with default assignment operator ppalka at gcc dot gnu.org
@ 2021-02-01 13:49 ` cvs-commit at gcc dot gnu.org
  2021-02-01 13:53 ` ppalka at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-01 13:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:

https://gcc.gnu.org/g:1b303ef6cc8a5913345cbcd91abf13075ab2aec9

commit r11-7007-g1b303ef6cc8a5913345cbcd91abf13075ab2aec9
Author: Patrick Palka <ppalka@redhat.com>
Date:   Mon Feb 1 08:48:46 2021 -0500

    c++: Add testcase for PR84494

    We correctly accept this testcase ever since r10-5143.

    gcc/testsuite/ChangeLog:

            PR c++/84494
            * g++.dg/cpp1y/constexpr-84494.C: New test.

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

* [Bug c++/84494] Invalid constexpr with default assignment operator
       [not found] <bug-84494-4@http.gcc.gnu.org/bugzilla/>
  2021-02-01 13:43 ` [Bug c++/84494] Invalid constexpr with default assignment operator ppalka at gcc dot gnu.org
  2021-02-01 13:49 ` cvs-commit at gcc dot gnu.org
@ 2021-02-01 13:53 ` ppalka at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-02-01 13:53 UTC (permalink / raw)
  To: gcc-bugs

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

Patrick Palka <ppalka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |10.0

--- Comment #4 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed then.

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

end of thread, other threads:[~2021-02-01 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-84494-4@http.gcc.gnu.org/bugzilla/>
2021-02-01 13:43 ` [Bug c++/84494] Invalid constexpr with default assignment operator ppalka at gcc dot gnu.org
2021-02-01 13:49 ` cvs-commit at gcc dot gnu.org
2021-02-01 13:53 ` ppalka 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).