The recent merge of the delayed folding branch breaks boot strap with ../../gcc/gcc/cp/tree.c: In function 'tree_node* build_cplus_array_type(tree, tree)': ../../gcc/gcc/cp/tree.c:894:44: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] = TYPE_NEEDS_CONSTRUCTING (elt_type)); ^
../../gcc/gcc/cp/tree.c:896:51: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] = TYPE_HAS_NONTRIVIAL_DESTRUCTOR (elt_type)); Fix the obivous typos. To to commit? -Andi diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index d2db31a..83643df 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -891,9 +891,9 @@ build_cplus_array_type (tree elt_type, tree index_type) /* Push these needs up to the ARRAY_TYPE so that initialization takes place more easily. */ bool needs_ctor = (TYPE_NEEDS_CONSTRUCTING (t) - = TYPE_NEEDS_CONSTRUCTING (elt_type)); + == TYPE_NEEDS_CONSTRUCTING (elt_type)); bool needs_dtor = (TYPE_HAS_NONTRIVIAL_DESTRUCTOR (t) - = TYPE_HAS_NONTRIVIAL_DESTRUCTOR (elt_type)); + == TYPE_HAS_NONTRIVIAL_DESTRUCTOR (elt_type)); if (!dependent && t == TYPE_MAIN_VARIANT (t) && !COMPLETE_TYPE_P (t) && COMPLETE_TYPE_P (elt_type))