aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@integrable-solutions.net>2004-03-01 21:04:30 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2004-03-01 21:04:30 +0000
commit1c09c5e5c4e5fdca13833965175fd782c6f40d72 (patch)
tree1ce3b9686d3dbe97a45c1737b57aa23336e63282 /gcc/cp
parentab73670a29184764111d4cd87d71542ba646bb4d (diff)
downloadgcc-1c09c5e5c4e5fdca13833965175fd782c6f40d72.zip
gcc-1c09c5e5c4e5fdca13833965175fd782c6f40d72.tar.gz
gcc-1c09c5e5c4e5fdca13833965175fd782c6f40d72.tar.bz2
re PR c++/14369 (errenous reject of well-formed code)
PR c++/14369 * error.c (dump_expr): Handle THROW_EXPR. From-SVN: r78723
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/error.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 9c7d3d9..02b99e4 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2004-03-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ PR c++/14369
+ * error.c (dump_expr): Handle THROW_EXPR.
+
2004-03-01 Mark Mitchell <mark@codesourcery.com>
PR c++/14324
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index a276f7b..bbd90c9d 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -1319,6 +1319,11 @@ dump_expr (tree t, int flags)
pp_c_constant (pp_c_base (cxx_pp), t);
break;
+ case THROW_EXPR:
+ pp_identifier (cxx_pp, "throw");
+ dump_expr (TREE_OPERAND (t, 0), flags);
+ break;
+
case PTRMEM_CST:
pp_ampersand (cxx_pp);
dump_type (PTRMEM_CST_CLASS (t), flags);