diff options
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 6adeb63..2e58615 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -2353,9 +2353,9 @@ no_linkage_check (tree t, bool relaxed_p) return NULL_TREE; /* Fall through. */ case ENUMERAL_TYPE: - /* Only treat anonymous types as having no linkage if they're at + /* Only treat unnamed types as having no linkage if they're at namespace scope. This is core issue 966. */ - if (TYPE_ANONYMOUS_P (t) && TYPE_NAMESPACE_SCOPE_P (t)) + if (TYPE_UNNAMED_P (t) && TYPE_NAMESPACE_SCOPE_P (t)) return t; for (r = CP_TYPE_CONTEXT (t); ; ) |