This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ PATCH: partial fix for PR14369
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mark at codesourcery dot com
- Date: 01 Mar 2004 19:54:33 +0100
- Subject: C++ PATCH: partial fix for PR14369
- Organization: Integrable Solutions
This three-line fixes the pretty-printing problem in PR C++/14369.
It does not addres the core reject-valid issue though.
Applied to mainline.
OK for gcc-3_4-branch?
-- Gaby
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/ChangeLog,v
retrieving revision 1.3978
diff -p -r1.3978 ChangeLog
*** ChangeLog 1 Mar 2004 06:23:38 -0000 1.3978
--- ChangeLog 1 Mar 2004 18:48:01 -0000
***************
*** 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-02-29 Mark Mitchell <mark@codesourcery.com>
PR c++/14138
Index: error.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/error.c,v
retrieving revision 1.245
diff -p -r1.245 error.c
*** error.c 15 Feb 2004 15:00:54 -0000 1.245
--- error.c 1 Mar 2004 18:48:01 -0000
*************** dump_expr (tree t, int flags)
*** 1319,1324 ****
--- 1319,1329 ----
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);