OSDN Git Service

* c-pretty-print.c (pp_c_postfix_expression)
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Oct 2003 18:13:53 +0000 (18:13 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Oct 2003 18:13:53 +0000 (18:13 +0000)
        <COMPOUND_LITERAL_EXPR>: Fix thinko.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72236 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-pretty-print.c

index 0f6d632..9b3ac45 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-08  Jason Merrill  <jason@redhat.com>
+
+       * c-pretty-print.c (pp_c_postfix_expression)
+       <COMPOUND_LITERAL_EXPR>: Fix thinko.
+
 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        * mklibgcc.in: Don't hide undefined or typeless symbols.
index 4a006b2..b2161b0 100644 (file)
@@ -1217,7 +1217,7 @@ pp_c_postfix_expression (c_pretty_printer *pp, tree e)
       break;
 
     case COMPOUND_LITERAL_EXPR:
-      e = DECL_INITIAL (e);
+      e = DECL_INITIAL (COMPOUND_LITERAL_EXPR_DECL (e));
       /* Fall through.  */
     case CONSTRUCTOR:
       pp_initializer (pp, e);