parser.c (cp_parser_std_attribute_spec): When token_pair::require_open / require_clos...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 10 Jan 2018 19:54:17 +0000 (19:54 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 10 Jan 2018 19:54:17 +0000 (19:54 +0000)
commitd90a25424a1aee87c7b5d56545c971fa89577ee3
tree4ae64a2f282e9523ec2c33d5358107e0bfd69376
parentbbb31a1d5c53076fec251945ae5a500a3e973275
parser.c (cp_parser_std_attribute_spec): When token_pair::require_open / require_close return false simply return...

2018-01-10  Paolo Carlini  <paolo.carlini@oracle.com>

* parser.c (cp_parser_std_attribute_spec): When
        token_pair::require_open / require_close return false simply
return error_mark_node, avoid duplicate cp_parser_error about
expected '(' / ')', respectively.

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