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]

Tiny PATCH to c-pretty-print.c


A COMPOUND_LITERAL_EXPR isn't a decl.

Applied to trunk.

2003-10-08  Jason Merrill  <jason@redhat.com>

	* c-pretty-print.c (pp_c_postfix_expression)
	<COMPOUND_LITERAL_EXPR>: Fix thinko.

*** c-pretty-print.c.~1~	2003-10-08 06:27:50.000000000 -0400
--- c-pretty-print.c	2003-10-08 13:10:43.000000000 -0400
*************** pp_c_postfix_expression (c_pretty_printe
*** 1236,1242 ****
        break;
  
      case COMPOUND_LITERAL_EXPR:
!       e = DECL_INITIAL (e);
        /* Fall through.  */
      case CONSTRUCTOR:
        pp_initializer (pp, e);
--- 1236,1242 ----
        break;
  
      case COMPOUND_LITERAL_EXPR:
!       e = DECL_INITIAL (COMPOUND_LITERAL_EXPR_DECL (e));
        /* Fall through.  */
      case CONSTRUCTOR:
        pp_initializer (pp, e);

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