summaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2016-12-01 18:58:47 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2016-12-01 13:58:47 -0500
commitd8a2f02ec6c25fb050e96048eb19ae218d79e74b (patch)
treeabf4c1273456ae60e2a5dceb8c62953426d56282 /gcc/dbxout.c
parent1281fc99115392eb3f19f5e0a5c9b604fc72b27a (diff)
re PR debug/66149 (ICE: tree check: expected field_decl, have template_decl in int_bit_position, at tree.h:5012 with -std=c++14 -gstabs)
PR debug/66419 PR c++/78235 * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs. From-SVN: r243126
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 33014174dab..658cc3d1024 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -1479,6 +1479,7 @@ dbxout_type_fields (tree type)
/* Omit here local type decls until we know how to support them. */
if (TREE_CODE (tem) == TYPE_DECL
+ || TREE_CODE (tem) == TEMPLATE_DECL
/* Omit here the nameless fields that are used to skip bits. */
|| DECL_IGNORED_P (tem)
/* Omit fields whose position or size are variable or too large to