https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98528
--- Comment #1 from Nathan Sidwell <nathan at gcc dot gnu.org> --- Could you provide the -save-temps .ii files please? I suspect something different in the solaris system headers. it seems to be losing the c++17/2a distinguisher in the test name ...