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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to ensadc from comment #1)
> It seems that the inliner does not like the `static` specifier in
> `__constant_string_p`. This also triggers "inlining failed in call to
> always_inline" error:
> 
> static __attribute__((always_inline)) constexpr bool
> f()
> {
>     return __builtin_is_constant_evaluated();
> }
> 
> int main() {
>     (void)f();
> }

That 'static' causes ODR violations, so I think we need to get rid of it
anyway.

Reply via email to