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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-01-19
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
struct b {
  void c();
};
typedef void (b::*a)();
struct bg {
  constexpr bg(a d) {
    auto e = new a(d);
    e->~a();
  }
} bn {
  &b::c
};

```

And yes this is valid C++20 (the original was valid C++17 even).

Reply via email to