diff options
author | Nathan Sidwell <nathan@acm.org> | 2018-01-23 14:08:11 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2018-01-23 14:08:11 +0000 |
commit | 66ce8ff7603b3b717fff93d706b1cf3548ba4671 (patch) | |
tree | 310b045403587d2a1e1ccee5d2ab0a632cf14517 /gcc/cp/ptree.c | |
parent | 55a46cb54a7ebabd298e7f574993bb73f879758c (diff) | |
download | gcc-66ce8ff7603b3b717fff93d706b1cf3548ba4671.zip gcc-66ce8ff7603b3b717fff93d706b1cf3548ba4671.tar.gz gcc-66ce8ff7603b3b717fff93d706b1cf3548ba4671.tar.bz2 |
[PR c++/839888] Baselink tsubst ICE
https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01954.html
PR c++/83988
* pt.c (tsubst_baselink): Remove optype assert.
* ptree.c (cxx_print_xnode): <case BASELINK> Print BASELINK_OPTYPE.
PR c++/83988
* g++.dg/template/pr83988.C: New.
From-SVN: r256986
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r-- | gcc/cp/ptree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 8e7697a..40535c7 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -215,6 +215,7 @@ cxx_print_xnode (FILE *file, tree node, int indent) print_node (file, "binfo", BASELINK_BINFO (node), indent + 4); print_node (file, "access_binfo", BASELINK_ACCESS_BINFO (node), indent + 4); + print_node (file, "optype", BASELINK_OPTYPE (node), indent + 4); break; case OVERLOAD: print_node (file, "function", OVL_FUNCTION (node), indent+4); |