Commit 9081b67b by Ian Lance Taylor

Avoid crash with extra struct initializers with abstract types.

From-SVN: r168984
parent 8ed8ea79
......@@ -10609,6 +10609,10 @@ Struct_construction_expression::do_determine_type(const Type_context*)
(*pv)->determine_type(&subcontext);
}
}
// Extra values are an error we will report elsewhere; we still want
// to determine the type to avoid knockon errors.
for (; pv != this->vals_->end(); ++pv)
(*pv)->determine_type_no_context();
}
// Check types.
......
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