Commit c945ee25 by Jason Merrill Committed by Jason Merrill

* semantics.c (force_paren_expr): Remove redundant test.

From-SVN: r258151
parent c660f88b
2018-03-02 Jason Merrill <jason@redhat.com>
* semantics.c (force_paren_expr): Remove redundant test.
2018-03-02 Marek Polacek <polacek@redhat.com>
PR c++/84663
......
......@@ -1693,8 +1693,7 @@ force_paren_expr (tree expr)
if (TREE_CODE (expr) == COMPONENT_REF
|| TREE_CODE (expr) == SCOPE_REF)
REF_PARENTHESIZED_P (expr) = true;
else if (type_dependent_expression_p (expr)
|| processing_template_decl)
else if (processing_template_decl)
expr = build1 (PAREN_EXPR, TREE_TYPE (expr), expr);
else if (VAR_P (expr) && DECL_HARD_REGISTER (expr))
/* We can't bind a hard register variable to a reference. */;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment