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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jakub at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 53104
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53104&action=edit
gcc13-pr88174.patch

Untested fix.

Also fixes e.g.:
#include <complex>

constexpr bool
foo ()
{
  std::complex<double> a (1.0, 2.0);
  a += 3.0;
  a.real (6.0);
  return a.real () == 6.0 && a.imag () == 2.0;
}

static_assert (foo ());

with -std=c++20 which failed before.

Reply via email to