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

Johel Ernesto Guerrero Peña <johelegp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johelegp at gmail dot com

--- Comment #3 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> ---
Reduced test case: https://gcc.godbolt.org/z/aT8Dv-.
```C++
struct A { int x; };
consteval A operator+(A x) { return x; }
void f() { +A(0); }
```

This one doesn't involve a constructor call within the evaluation:
https://gcc.godbolt.org/z/fJQC_M.
```C++
struct A { int x; };
consteval const A& operator+(const A& x) { return x; }
void f() { constexpr A a(0); +a; }
```

Reply via email to