From d8a2f02ec6c25fb050e96048eb19ae218d79e74b Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Thu, 1 Dec 2016 18:58:47 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/dbxout.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b567324..c70394e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-12-01 David Edelsohn + + PR debug/66419 + PR c++/78235 + * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs. + 2016-12-01 Richard Biener Prathamesh Kulkarni diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 3301417..658cc3d 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 -- 2.7.4