Commit 1ed0d9f8 by Jason Merrill Committed by Jason Merrill

Fix location of dependent member CALL_EXPR.

The break here was skipping over the code that sets EXPR_LOCATION on the
call expressions, for no good reason.

	* parser.c (cp_parser_postfix_expression): Do set location of
	dependent member call.

From-SVN: r276112
parent a20673a5
2019-09-24 Jason Merrill <jason@redhat.com>
* parser.c (cp_parser_postfix_expression): Do set location of
dependent member call.
2019-09-24 Marek Polacek <polacek@redhat.com> 2019-09-24 Marek Polacek <polacek@redhat.com>
PR c++/91868 - improve -Wshadow location. PR c++/91868 - improve -Wshadow location.
......
...@@ -7375,11 +7375,8 @@ cp_parser_postfix_expression (cp_parser *parser, bool address_p, bool cast_p, ...@@ -7375,11 +7375,8 @@ cp_parser_postfix_expression (cp_parser *parser, bool address_p, bool cast_p,
maybe_generic_this_capture (instance, fn); maybe_generic_this_capture (instance, fn);
postfix_expression postfix_expression
= build_min_nt_call_vec (postfix_expression, args); = build_min_nt_call_vec (postfix_expression, args);
release_tree_vector (args);
break;
} }
else if (BASELINK_P (fn))
if (BASELINK_P (fn))
{ {
postfix_expression postfix_expression
= (build_new_method_call = (build_new_method_call
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