diff options
author | Jason Merrill <jason@redhat.com> | 2011-05-27 15:31:59 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2011-05-27 15:31:59 -0400 |
commit | 87fd3cf18a7e5d67bbbf9a96c34c5476544a4eac (patch) | |
tree | cb30504f468540fa345380bf247098a12f7fc9a8 /gcc/cp/error.c | |
parent | 0453694246f95eac300dca7c931d0f25368da2bb (diff) | |
download | gcc-87fd3cf18a7e5d67bbbf9a96c34c5476544a4eac.zip gcc-87fd3cf18a7e5d67bbbf9a96c34c5476544a4eac.tar.gz gcc-87fd3cf18a7e5d67bbbf9a96c34c5476544a4eac.tar.bz2 |
re PR c++/48284 ([C++0x] incorrect printing of decltype operand in diagnostic)
PR c++/48284
* error.c (dump_expr) [COMPONENT_REF]: Use pp_cxx_dot
with INDIRECT_REF of REFERENCE_TYPE.
From-SVN: r174353
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 8d7aaa7..a40630a 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1890,7 +1890,10 @@ dump_expr (tree t, int flags) && strcmp (IDENTIFIER_POINTER (DECL_NAME (ob)), "this"))) { dump_expr (ob, flags | TFF_EXPR_IN_PARENS); - pp_cxx_arrow (cxx_pp); + if (TREE_CODE (TREE_TYPE (ob)) == REFERENCE_TYPE) + pp_cxx_dot (cxx_pp); + else + pp_cxx_arrow (cxx_pp); } } else |