+2018-04-10 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/85312 - P0962 cleanup
+ * parser.c (cp_parser_perform_range_for_lookup): Remove unreachable
+ diagnostics.
+
2018-04-10 Jason Merrill <jason@redhat.com>
PR debug/65821 - wrong location for main().
if (member_begin != NULL_TREE && member_end != NULL_TREE)
{
/* Use the member functions. */
- if (member_begin != NULL_TREE)
- *begin = cp_parser_range_for_member_function (range, id_begin);
- else
- error ("range-based %<for%> expression of type %qT has an "
- "%<end%> member but not a %<begin%>", TREE_TYPE (range));
-
- if (member_end != NULL_TREE)
- *end = cp_parser_range_for_member_function (range, id_end);
- else
- error ("range-based %<for%> expression of type %qT has a "
- "%<begin%> member but not an %<end%>", TREE_TYPE (range));
+ *begin = cp_parser_range_for_member_function (range, id_begin);
+ *end = cp_parser_range_for_member_function (range, id_end);
}
else
{