[Bug c++/99377] [modules] undefined std::string_view::empty() if referenced in inline exported function

johelegp at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Dec 20 18:35:32 GMT 2021


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

--- Comment #7 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> ---
    if (v == [] consteval { return std::numeric_limits<I>::max() }()) break;
works too.
More generally, you can avoid the linker error if you don't require the symbol
at link time.


More information about the Gcc-bugs mailing list