diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-05-29 16:50:41 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-05-29 16:50:41 +0000 |
commit | a5cfa13ab9ef5b9a740129fca6b73acea436c493 (patch) | |
tree | 2fc8718059ccf433205f8e19102a61ef691a7320 /gcc/cp/ptree.c | |
parent | 3c9cca8848a19225074fbdbe597b889ab00114d8 (diff) | |
download | gcc-a5cfa13ab9ef5b9a740129fca6b73acea436c493.zip gcc-a5cfa13ab9ef5b9a740129fca6b73acea436c493.tar.gz gcc-a5cfa13ab9ef5b9a740129fca6b73acea436c493.tar.bz2 |
PR c++/80891 (#4)
PR c++/80891 (#4)
* ptree.c (cxx_print_xnode): Show internal OVERLOAD structure.
* tree.c (ovl_insert, ovl_iterator_remove_node): Fix copying
assert.
PR c++/80891 (#4)
* g++.dg/lookup/pr80891-4.C: New.
From-SVN: r248576
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r-- | gcc/cp/ptree.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index a2977e8..f8e879e 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -236,11 +236,8 @@ cxx_print_xnode (FILE *file, tree node, int indent) indent + 4); break; case OVERLOAD: - print_node (file, "name", OVL_NAME (node), indent+4); - for (ovl_iterator iter (node, true); iter; ++iter) - print_node (file, - TREE_CODE (*iter) == OVERLOAD ? "inner" : "function", - *iter, indent+4); + print_node (file, "function", OVL_FUNCTION (node), indent+4); + print_node (file, "next", OVL_CHAIN (node), indent+4); break; case TEMPLATE_PARM_INDEX: print_node (file, "decl", TEMPLATE_PARM_DECL (node), indent+4); |