aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-02-18 14:20:21 -0500
committerJason Merrill <jason@gcc.gnu.org>2010-02-18 14:20:21 -0500
commit7890246f665ba2778e91aae45580016cccecca35 (patch)
treef6d1a310879f52450abbd785b8773143785847ee /gcc/cp/semantics.c
parentbb7dcd0ef31d158f41ca2bd69d5c941cb1c7fdf3 (diff)
downloadgcc-7890246f665ba2778e91aae45580016cccecca35.zip
gcc-7890246f665ba2778e91aae45580016cccecca35.tar.gz
gcc-7890246f665ba2778e91aae45580016cccecca35.tar.bz2
re PR target/43070 (g++.dg/ext/label2.C fails to compile at -O1)
PR c++/43070 * semantics.c (finish_goto_stmt): Don't call decay_conversion. From-SVN: r156872
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 24390d9..5d8b767 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -546,10 +546,8 @@ finish_goto_stmt (tree destination)
TREE_USED (destination) = 1;
else
{
- /* The DESTINATION is being used as an rvalue. */
if (!processing_template_decl)
{
- destination = decay_conversion (destination);
destination = cp_convert (ptr_type_node, destination);
if (error_operand_p (destination))
return NULL_TREE;