diff options
Diffstat (limited to 'gcc/dwarfout.c')
-rw-r--r-- | gcc/dwarfout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index 8e1f2067f52..edcf82241b8 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -4136,6 +4136,9 @@ type_ok_for_scope (type, scope) return is_tagged_type (type) ? (TYPE_CONTEXT (type) == scope + /* Ignore namespaces for the moment. */ + || (scope == NULL_TREE + && TREE_CODE (TYPE_CONTEXT (type)) == NAMESPACE_DECL) || (scope == NULL_TREE && is_tagged_type (TYPE_CONTEXT (type)) && TREE_ASM_WRITTEN (TYPE_CONTEXT (type)))) : (scope == NULL_TREE || ! is_tagged_type (scope)); |