PR c++/68795: fix uninitialized close_paren_loc in cp_parser_postfix_expression
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 11 Jan 2016 18:03:15 +0000 (18:03 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 11 Jan 2016 18:03:15 +0000 (18:03 +0000)
commit655441d6015134c86c596ba28d079eb6c43b64bf
tree924047779f9445c7d5f96637e1ba594a1dcf6408
parent9cb6bd7432547275c336b7dab5dd4db7a689eabb
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.

From-SVN: r232238
gcc/cp/ChangeLog
gcc/cp/parser.c