re PR debug/66149 (ICE: tree check: expected field_decl, have template_decl in int_bi...
authorDavid Edelsohn <dje.gcc@gmail.com>
Thu, 1 Dec 2016 18:58:47 +0000 (18:58 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Thu, 1 Dec 2016 18:58:47 +0000 (13:58 -0500)
PR debug/66419
PR c++/78235
* dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.

From-SVN: r243126

gcc/ChangeLog
gcc/dbxout.c

index b567324d4f3a7f870492d485c394db405bbbc2c8..c70394e2f1794abbae612cf464f7102f0fbc519b 100644 (file)
@@ -1,3 +1,9 @@
+2016-12-01  David Edelsohn  <dje.gcc@gmail.com>
+
+       PR debug/66419
+       PR c++/78235
+       * dbxout.c (dbxout_type_fields): Skip TEMPLATE_DECLs.
+
 2016-12-01  Richard Biener  <rguenther@suse.de>
            Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
 
index 33014174daba1a051cb07107ebf73923af2935b5..658cc3d1024a96d7cbb263a6b1191cffe2a4f69f 100644 (file)
@@ -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