PR c++/68795: fix uninitialized close_paren_loc in cp_parser_postfix_expression
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Jan 2016 18:03:15 +0000 (18:03 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Jan 2016 18:03:15 +0000 (18:03 +0000)
commitba89687eca37ab7d1ff1539091f2f5bc0fb00c26
tree924047779f9445c7d5f96637e1ba594a1dcf6408
parent91fbd04fb99e3dde34a6b950bc8ba3ba9ced4fc1
PR c++/68795: fix uninitialized close_paren_loc in cp_parser_postfix_expression

gcc/cp/ChangeLog:
PR c++/68795
* parser.c (cp_parser_postfix_expression): Initialize
close_paren_loc to UNKNOWN_LOCATION; only use it if
it has been written to by
cp_parser_parenthesized_expression_list.
(cp_parser_parenthesized_expression_list): Document the behavior
with respect to the CLOSE_PAREN_LOC param.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232238 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c