re PR c++/92648 (Handling of unknown attributes)
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Nov 2019 21:58:22 +0000 (22:58 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 26 Nov 2019 21:58:22 +0000 (22:58 +0100)
commit4e4a8c28f3da0264eb76dff0efe21b4b5ce63b84
tree64fc447a5a41dcfbfa6d66fa56da2a919eee8283
parent05d6cb1a858151016dbd368fd8b0792f73423d19
re PR c++/92648 (Handling of unknown attributes)

PR c++/92648
* parser.c (cp_parser_std_attribute): For unknown attributes,
skip balanced token seq instead of trying to parse
attribute-argument-clause as expression list.  Formatting fix.

* g++.dg/cpp0x/gen-attrs-71.C: New test.

From-SVN: r278737
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/gen-attrs-71.C [new file with mode: 0644]