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

--- Comment #4 from Ivan Lazaric <ivan.lazaric.gcc at gmail dot com> ---
Noting behaviour of code snippet changed on trunk,
it now fails before we reach linking,
it fails in the `extract()` function.

```
<source>: In function 'int main()':
<source>:19:20: error: call to consteval function 'find_value(^^storage<int>)'
is not a constant expression
   19 |   return find_value(^^storage<int>);
      |          ~~~~~~~~~~^~~~~~~~~~~~~~~~
<source>:20:1: error: uncaught exception of type 'std::meta::exception';
'what()': 'value cannot be extracted'
   20 | }
      | ^
```
  • [Bug c++/127353] undefined ... ivan.lazaric.gcc at gmail dot com via Gcc-bugs

Reply via email to