Objective-C++ : Avoid ICE on invalid with empty attributes.
authorIain Sandoe <iain@sandoe.co.uk>
Tue, 17 Nov 2020 20:05:22 +0000 (20:05 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 18 Nov 2020 20:42:35 +0000 (20:42 +0000)
commit08028093211c1b57f33e5669f816157934ab23dd
tree3c640e6d313469f9d95d0a8d845fa5cd328d935f
parentf44e6091627372bd8fc4e72874a003643b021dca
Objective-C++ : Avoid ICE on invalid with empty attributes.

Empty prefix attributes like:

__attribute__ (())
@interface MyClass
@end

cause an ICE at present, check for that case and skip them.

gcc/cp/ChangeLog:

* parser.c (cp_parser_objc_valid_prefix_attributes): Check
for empty attributes.
gcc/cp/parser.c