]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/pt.c
re PR middle-end/6196 (ICE in copy_to_mode_reg, at explow.c:711)
[thirdparty/gcc.git] / gcc / cp / pt.c
index 45bec17520c3b901cf2865ee1d33b36ce10b16ab..ff3518e069a3118945d858f2f84dd3de1c84f1af 100644 (file)
@@ -7972,6 +7972,8 @@ tsubst_copy_and_build (tree t,
       else
        op1 = tsubst_non_call_postfix_expression (op1, args, complain, 
                                                  in_decl);
+      if (TREE_CODE (op1) == LABEL_DECL)
+       return finish_label_address_expr (DECL_NAME (op1));
       return build_x_unary_op (ADDR_EXPR, op1);
 
     case PLUS_EXPR: