diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-12 13:16:22 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-10-12 13:16:22 +0000 |
commit | 88529a42a358f4dcb080b7304d29863f9cc73886 (patch) | |
tree | d3fe0ddcb855eb7439d3b6aa336fc350e6d0f082 /gcc/cp/error.c | |
parent | fa734c11ed83c9e5797be966668dcae688a101b5 (diff) | |
download | ppe42-gcc-88529a42a358f4dcb080b7304d29863f9cc73886.tar.gz ppe42-gcc-88529a42a358f4dcb080b7304d29863f9cc73886.zip |
==> cp/ChangeLog <==
2005-10-12 Paolo Bonzini <bonzini@gnu.org>
PR c++/24052
* error.c (dump_expr): Pass LABEL_DECL to dump_decl. Print
an ADDR_EXPR of a LABEL_DECL as &&.
==> testsuite/ChangeLog <==
2005-10-12 Paolo Bonzini <bonzini@gnu.org>
PR c++/24052
* g++.dg/ext/label5.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 1b70bbbb0fb..8e39ccadd1e 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -1295,6 +1295,7 @@ dump_expr (tree t, int flags) case FUNCTION_DECL: case TEMPLATE_DECL: case NAMESPACE_DECL: + case LABEL_DECL: case OVERLOAD: case IDENTIFIER_NODE: dump_decl (t, (flags & ~TFF_DECL_SPECIFIERS) | TFF_NO_FUNCTION_ARGUMENTS); @@ -1537,6 +1538,8 @@ dump_expr (tree t, int flags) || (TREE_TYPE (t) && TREE_CODE (TREE_TYPE (t)) == REFERENCE_TYPE)) dump_expr (TREE_OPERAND (t, 0), flags | TFF_EXPR_IN_PARENS); + else if (TREE_CODE (TREE_OPERAND (t, 0)) == LABEL_DECL) + dump_unary_op ("&&", t, flags); else dump_unary_op ("&", t, flags); break; |