* error.c (dump_expr): Handle COMPLEX_CST.
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Aug 2007 05:55:54 +0000 (05:55 +0000)
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 28 Aug 2007 05:55:54 +0000 (05:55 +0000)
* cxx-pretty-print.c (pp_cxx_primary_expression): Likewise.
(pp_cxx_expression): Likewise.

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

gcc/cp/ChangeLog
gcc/cp/cxx-pretty-print.c
gcc/cp/error.c

index ca09bf4..0d412ce 100644 (file)
@@ -1,3 +1,9 @@
+2007-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
+       
+       * error.c (dump_expr): Handle COMPLEX_CST.
+       * cxx-pretty-print.c (pp_cxx_primary_expression): Likewise.
+       (pp_cxx_expression): Likewise.
+
 2007-08-27  Alexandre Oliva  <aoliva@redhat.com>
 
        * decl.c (GNU_INLINE_P): New.
index 18983a4..158cbc4 100644 (file)
@@ -352,6 +352,7 @@ pp_cxx_primary_expression (cxx_pretty_printer *pp, tree t)
     {
     case INTEGER_CST:
     case REAL_CST:
+    case COMPLEX_CST:
     case STRING_CST:
       pp_cxx_constant (pp, t);
       break;
@@ -928,6 +929,7 @@ pp_cxx_expression (cxx_pretty_printer *pp, tree t)
     case STRING_CST:
     case INTEGER_CST:
     case REAL_CST:
+    case COMPLEX_CST:
       pp_cxx_constant (pp, t);
       break;
 
index 2a1fa52..90b95c0 100644 (file)
@@ -1477,6 +1477,7 @@ dump_expr (tree t, int flags)
     case INTEGER_CST:
     case REAL_CST:
     case STRING_CST:
+    case COMPLEX_CST:
       pp_constant (cxx_pp, t);
       break;