https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66180
--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I can reproduce these now, too. Indeed it is a bug - there is template instantiated with anonymous namespace parameter that makes it also anonymous. Sadly my fix for the false positives of type_in_anonymous_namespace_p also introduces false negatives. We really need a decision on https://gcc.gnu.org/ml/gcc-patches/2015-05/msg01245.html