diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-12-27 09:05:17 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2005-12-27 09:05:17 +0000 |
commit | d85d3d578a5c2abcf2b071ef42a558a4ed18b55c (patch) | |
tree | 54ef59d674eb69b32d822563e62bc42a55204106 /gcc/cp/ptree.c | |
parent | dec2f8810bf2a30c8fa8d0714074df10dc04bc5c (diff) | |
download | gcc-d85d3d578a5c2abcf2b071ef42a558a4ed18b55c.zip gcc-d85d3d578a5c2abcf2b071ef42a558a4ed18b55c.tar.gz gcc-d85d3d578a5c2abcf2b071ef42a558a4ed18b55c.tar.bz2 |
re PR c++/25439 ("template<> int A<0>" accepted)
PR c++/25439
* decl.c (grokdeclarator): Remove dead code.
* ptree.c (cxx_print_xnode): Handle BASELINK.
* parser.c (make_id_declarator): Add sfk parameter.
(cp_parser_direct_declarator): Do not pass TYPE_DECLs to
make_id_declarator.
(cp_parser_declarator_id): Simplify BASELINKs here.
(cp_parser_member_declaration): Adjust calls to
make_id_declarator.
PR c++/25439
* g++.dg/parse/crash17.C: Adjust error markers.
* g++.dg/template/error20.C: New test.
From-SVN: r109079
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r-- | gcc/cp/ptree.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index 5d6651c..c222bdc 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -169,6 +169,12 @@ cxx_print_xnode (FILE *file, tree node, int indent) { switch (TREE_CODE (node)) { + case BASELINK: + print_node (file, "functions", BASELINK_FUNCTIONS (node), indent + 4); + print_node (file, "binfo", BASELINK_BINFO (node), indent + 4); + print_node (file, "access_binfo", BASELINK_ACCESS_BINFO (node), + indent + 4); + break; case OVERLOAD: print_node (file, "function", OVL_FUNCTION (node), indent+4); print_node (file, "chain", TREE_CHAIN (node), indent+4); |