https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91901
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- With https://forge.sourceware.org/gcc/gcc-TEST/pulls/64 we get: ``` __attribute__((nodiscard)) struct string_view magic_enum::detail::_ZN10magic_enum6detail4nameI1EEESt17basic_string_viewIcSt11char_traitsIcEET_.part.0<E> (E value) { struct string_view D.27695; long unsigned int i; int _2; <bb 2> [local count: 536870912]: _2 = value_1(D) + 128; i_3 = (long unsigned int) _2; D.27695 = MEM <const struct array> [(const struct basic_string_view &)&*.LC0]._M_elems[i_3]; return D.27695; } ``` But the reason why this is not inlined is a different story ...