summaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2004-10-10 05:02:54 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2004-10-10 05:02:54 +0000
commit17a27b4f0c4ce1f151263c1919dba4fd2231eedc (patch)
treec79be0800daaa4e6c1647924399c5e22fb0b7902 /gcc/cp/error.c
parentc69c9b36a97fddbde2112a5f8d50a4aabe13a19a (diff)
downloadgcc-17a27b4f0c4ce1f151263c1919dba4fd2231eedc.tar.gz
re PR c++/17867 ("void" instead of class name in error message)
PR c++/17867 * error.c (dump_expr): Correct handling of AGGR_INIT_EXPRs using a constructor. PR c++/17670 * init.c (build_new): Correct comments. * parser.c (cp_parser_new_expression): Use NULL_TREE for nelts in the non-array case. PR c++/17821 * parser.c (cp_parser_postfix_dot_deref_expression): If the pseduo-destructor-name production does not work, fall back to the ordinary production. PR c++/17826 * tree.c (cp_tree_equal): Handle a BASELINK. PR c++/17687 * g++.dg/parse/error19.C: New test. PR c++/17670 * g++.dg/init/new11.C: New test. PR c++/17821 * g++.dg/parse/error20.C: New test. PR c++/17826 * g++.dg/template/crash24.C: New test. From-SVN: r88836
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 8ac6e2b6904..af973d60a2c 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -1343,7 +1343,7 @@ dump_expr (tree t, int flags)
if (fn && TREE_CODE (fn) == FUNCTION_DECL)
{
if (DECL_CONSTRUCTOR_P (fn))
- pp_cxx_tree_identifier (cxx_pp, TYPE_IDENTIFIER (TREE_TYPE (t)));
+ dump_type (DECL_CONTEXT (fn), flags);
else
dump_decl (fn, 0);
}