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

            Bug ID: 121678
           Summary: &__real__ static_var not constexpr
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

static constexpr _Complex double a = 1.0;
static constexpr double *r = &__real__ a;
static constexpr double *i = &__imag__ a;
is rejected in C++ and
static const _Complex double a = 1.0;
static const double *const r = &__real__ a;
static const double *const i = &__imag__ a;
in C.  I think both should be accepted.

Reply via email to