https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87155
--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> --- Hm, while I understand the intent here, I wonder if clang is succeeding by accident? The std is not completely clear whether all anonymous namespaces may share the same unique identifier or not. We do, and hence fail here for the same reasons as-if the two anonymous namespaces were named 'bob'. Will ask.