https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98910
--- Comment #2 from Rainer Orth <ro at gcc dot gnu.org> --- Unfortunately, even with your patch Solaris bootstrap is still broken: /vol/gcc/src/hg/master/local/libphobos/libdruntime/core/sys/posix/strings.d:23:15: error: module core.sys.posix.locale import 'locale_t' not found 23 | public import core.sys.posix.locale : locale_t; | ^ I only now noticed that you only define the XPG6 subset of locale functions in locale.d for Solaris. That seems quite unfortunate, castrating functionality for the benefit of older XPG6-only Solaris 11.3 while 11.4 supports locale_t and XPG7 perfectly fine. I'm uncertain what's the best way to handle this: one could certainly test for a locale_t definition via autoconf, record the result in gcc/config.d, and use that instead of version (Solaris). The same test would have to be used in strings.d to avoid leaving that broken when locale_t isn't available.