diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2009-01-30 15:03:10 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2009-01-30 15:03:10 +0000 |
commit | 1fae3e66dac0f62eafa859d144d56c704536cf7a (patch) | |
tree | dd7588129117cca535ab094b9c910b2b0e1c8ab9 /gcc/cp | |
parent | 349ac7467134cdec282d4e17eb6161e74ead2e76 (diff) | |
download | gcc-1fae3e66dac0f62eafa859d144d56c704536cf7a.zip gcc-1fae3e66dac0f62eafa859d144d56c704536cf7a.tar.gz gcc-1fae3e66dac0f62eafa859d144d56c704536cf7a.tar.bz2 |
re PR c++/33465 (Broken diagnostic: 'fix_trunc_expr' and 'float_expr' not supported by dump_expr)
/cp
2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/33465
* error.c (dump_expr): Handle FIX_TRUNC_EXPR and FLOAT_EXPR.
/testsuite
2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/33465
* g++.dg/parse/error34.C: New.
* g++.dg/parse/error35.C: Likewise.
/cp
2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/38655
* error.c (dump_type_prefix, dump_type_suffix): Handle FIXED_POINT_TYPE.
/testsuite
2009-01-30 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/38655
* g++.dg/cpp0x/decltype-38655.C: New.
From-SVN: r143790
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/cp/error.c | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index afa84be..7595491 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,13 @@ +2009-01-30 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/33465 + * error.c (dump_expr): Handle FIX_TRUNC_EXPR and FLOAT_EXPR. + +2009-01-30 Paolo Carlini <paolo.carlini@oracle.com> + + PR c++/38655 + * error.c (dump_type_prefix, dump_type_suffix): Handle FIXED_POINT_TYPE. + 2009-01-29 Paolo Carlini <paolo.carlini@oracle.com> * typeck.c (invalid_nonstatic_memfn_p): Use diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 16c9628..e2cb8bf 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -626,6 +626,7 @@ dump_type_prefix (tree t, int flags) case TYPEOF_TYPE: case DECLTYPE_TYPE: case TYPE_PACK_EXPANSION: + case FIXED_POINT_TYPE: dump_type (t, flags); pp_base (cxx_pp)->padding = pp_before; break; @@ -724,6 +725,7 @@ dump_type_suffix (tree t, int flags) case TYPEOF_TYPE: case DECLTYPE_TYPE: case TYPE_PACK_EXPANSION: + case FIXED_POINT_TYPE: break; default: @@ -2073,6 +2075,8 @@ dump_expr (tree t, int flags) case LTGT_EXPR: case COMPLEX_EXPR: case BIT_FIELD_REF: + case FIX_TRUNC_EXPR: + case FLOAT_EXPR: pp_expression (cxx_pp, t); break; |