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

--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
GCC 13.4.0 produced:
```
<source>: In instantiation of 'constexpr copy_of< <template-parameter-1-1>
>::copy_of() [with <template-parameter-1-1> = void]':
<source>:21:8:   required from here
<source>:6:8: error: the value of '<anonymous>' is not usable in a constant
expression
    6 | struct array_of {
      |        ^~~~~~~~
<source>:6:8: note: '<anonymous>' was not declared 'constexpr'
<source>:14:45: note: synthesized method 'constexpr array_of::array_of(const
array_of&)' first required here
   14 |   constexpr copy_of() : array_of{array_value} {}
      |                                             ^

```

Reply via email to