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

--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
We get the error now:
```
<source>:10:21:   in 'constexpr' expansion of 'f()'
<source>:6:27: error: cast from 'void*' is not allowed in a constant expression
before C++26
    6 |   int *p = new (&i) int (1);
      |                           ^
```
  • [Bug c++/61105] [constex... pinskia at gcc dot gnu.org via Gcc-bugs

Reply via email to