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

--- Comment #1 from gcc-bugs at marehr dot dialup.fu-berlin.de ---
I forgot to add the error message:

```
<source>: In instantiation of 'auto hard_error(t) [with t = int]':

<source>:11:35:   required by substitution of 'template<class t>  requires
requires{hard_error({});} constexpr auto foo(t, non_exisiting) [with t = int]'

<source>:19:17:   required from here
<source>:6:19: error: non-constant condition for static assertion
    6 |     static_assert(in, "Failure");
      |                   ^~

<source>:6:19: error: 'in' is not a constant expression
```

(For some reasons godbolt shows everything in the compliance view as green,
this link https://godbolt.org/z/Go8Mc5 should also show the compiler error)

Reply via email to