Objective-C++ : Address a FIXME.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 30 Oct 2020 19:24:07 +0000 (19:24 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 1 Nov 2020 20:15:25 +0000 (20:15 +0000)
commite344ea07e4024316e1bc01f18bf7f187ad3aef89
treed406d6eba79c5e13d509cc6c638e1b3e71ea088c
parent3784f161a383ead7d5fe9a5b68e4d07eccd82d49
Objective-C++ : Address a FIXME.

We can avoid the spurious additional complaint about a closing
')' by short-circuiting the test in the case we know there's a
syntax error already reported.

gcc/cp/ChangeLog:

* parser.c (cp_parser_objc_at_property_declaration): Use any
exisiting syntax error to suppress complaints about a missing
closing parenthesis in parsing property attributes.

gcc/testsuite/ChangeLog:

* obj-c++.dg/property/at-property-1.mm: Adjust test after
fixing spurious error output.
gcc/cp/parser.c
gcc/testsuite/obj-c++.dg/property/at-property-1.mm