This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33462] [4.1/4.2/4.3 regression] Broken diagnostic: 'va_arg_expr' not supported by dump_expr



------- Comment #1 from jakub at gcc dot gnu dot org  2007-09-18 15:34 -------
--- gcc/cp/error.c.jj   2007-09-11 12:43:28.000000000 +0200
+++ gcc/cp/error.c      2007-09-18 17:25:14.000000000 +0200
@@ -2054,6 +2054,15 @@ dump_expr (tree t, int flags)
       dump_type (t, flags);
       break;

+    case VA_ARG_EXPR:
+      pp_cxx_identifier (cxx_pp, "__builtin_va_arg");
+      pp_cxx_left_paren (cxx_pp);
+      dump_expr (TREE_OPERAND (t, 0), flags);
+      pp_separate_with_comma (cxx_pp);
+      dump_type (TREE_TYPE (t), flags);
+      pp_cxx_right_paren (cxx_pp);
+      break;
+
       /*  This list is incomplete, but should suffice for now.
          It is very important that `sorry' does not call
          `report_error_function'.  That could cause an infinite loop.  */


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33462


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]