summaryrefslogtreecommitdiffstats
path: root/gcc/cp/ptree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r--gcc/cp/ptree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c
index 8a7ba940063..5d6651c53d8 100644
--- a/gcc/cp/ptree.c
+++ b/gcc/cp/ptree.c
@@ -41,7 +41,8 @@ cxx_print_decl (FILE *file, tree node, int indent)
return;
}
- if (!DECL_LANG_SPECIFIC (node))
+ if (!CODE_CONTAINS_STRUCT (TREE_CODE (node), TS_DECL_COMMON)
+ || !DECL_LANG_SPECIFIC (node))
return;
indent_to (file, indent + 3);
if (TREE_CODE (node) == FUNCTION_DECL
OpenPOWER on IntegriCloud