Handle [[likely]] on compound-statement.
authorJason Merrill <jason@redhat.com>
Thu, 19 Sep 2019 19:41:17 +0000 (15:41 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 19 Sep 2019 19:41:17 +0000 (15:41 -0400)
commite0710fcf7dc70054a9a20ab1b8d77f4fef26ef2c
tree3b605b8399609b69b2a3b0b85ffe87790878be05
parenta519efbef81fbd8ae9c4766f878e64ed7a0d8f7d
Handle [[likely]] on compound-statement.

I overlooked this case when adding [[likely]] handling to
cp_parser_statement.

* parser.c (cp_parser_statement): Handle [[likely]] on
compound-statement.

From-SVN: r275978
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp2a/attr-likely5.C [new file with mode: 0644]