This is the mail archive of the gcc-patches@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]

C++ PATCH to error.c: Handle EMPTY_CLASS_EXPR


Boostrapped and regtested on an i686-pc-linux-gnu.
Applied to mainline.

-- Gaby

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/ChangeLog,v
retrieving revision 1.3519
diff -p -r1.3519 ChangeLog
*** ChangeLog	14 Jul 2003 15:04:30 -0000	1.3519
--- ChangeLog	14 Jul 2003 16:08:18 -0000
***************
*** 1,3 ****
--- 1,7 ----
+ 2003-07-14  Gabriel Dos Reis <gdr@integrable-solutions.net>
+ 
+ 	* error.c (dump_expr): Handle EMPTY_CLASS_EXPR.
+ 
  2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
  
  	PR c++/5293
Index: error.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/error.c,v
retrieving revision 1.221
diff -p -r1.221 error.c
*** error.c	10 Jul 2003 16:47:48 -0000	1.221
--- error.c	14 Jul 2003 16:08:23 -0000
*************** dump_expr (tree t, int flags)
*** 2032,2037 ****
--- 2032,2043 ----
        dump_expr (get_first_fn (t), flags & ~TFF_EXPR_IN_PARENS);
        break;
  
+     case EMPTY_CLASS_EXPR:
+       dump_type (TREE_TYPE (t), flags);
+       print_left_paren (scratch_buffer);
+       print_right_paren (scratch_buffer);
+       break;
+ 
      case NON_DEPENDENT_EXPR:
        output_add_string (scratch_buffer, "<expression of type ");
        dump_type (TREE_TYPE (t), flags);


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