]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: Handle CPP_EMBED in cp_parser_objc_message_args [PR118586]
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Jan 2025 17:49:51 +0000 (18:49 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Jan 2025 17:49:51 +0000 (18:49 +0100)
commit1911b8cbd78293582b38d938350a7fa6b3c2d5eb
treeaad7ed4bd66eaa4555f9009231768b3f8b228fb9
parent3024b12f2cde5db3bf52b49b07e32ef3065929fb
c++: Handle CPP_EMBED in cp_parser_objc_message_args [PR118586]

As the following testcases show, I forgot to handle CPP_EMBED in
cp_parser_objc_message_args which is another place which can parse
possibly long valid lists of CPP_COMMA separated CPP_NUMBER tokens.

2025-01-21  Jakub Jelinek  <jakub@redhat.com>

PR objc++/118586
gcc/cp/
* parser.cc (cp_parser_objc_message_args): Handle CPP_EMBED.
gcc/testsuite/
* objc.dg/embed-1.m: New test.
* obj-c++.dg/embed-1.mm: New test.
* obj-c++.dg/va-meth-2.mm: New test.
gcc/cp/parser.cc
gcc/testsuite/obj-c++.dg/embed-1.mm [new file with mode: 0644]
gcc/testsuite/obj-c++.dg/va-meth-2.mm [new file with mode: 0644]
gcc/testsuite/objc.dg/embed-1.m [new file with mode: 0644]