re PR c++/87175 (__attribute__)) is ignored by the parser)
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Feb 2019 08:42:01 +0000 (09:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 Feb 2019 08:42:01 +0000 (09:42 +0100)
commit7beb51f914e5f5930c279aab88597a39597064a6
tree12365b9b864bb20c5d56120cf37481149f9ccf66
parent09822562e4f196d209b1a5a59609ea9e9cdb892f
re PR c++/87175 (__attribute__)) is ignored by the parser)

PR c++/87175
* parser.c (cp_parser_gnu_attributes_opt): Set ok to false
if require_open failed.

* g++.dg/ext/attrib57.C: New test.

From-SVN: r268443
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/attrib57.C [new file with mode: 0644]