]> gcc.gnu.org Git - gcc.git/commit
backport: re PR c++/92648 (Handling of unknown attributes)
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Feb 2020 11:48:05 +0000 (12:48 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 17 Sep 2020 15:17:21 +0000 (17:17 +0200)
commite9eb1e4611bc59b981f2be0d863a706e7e1d956a
tree0c71950cdc475f32eec75c92208f20c2ee61229d
parentb00a4be6f54ac5a53a05a70b1dda81095eecf53b
backport: re PR c++/92648 (Handling of unknown attributes)

Backported from mainline
2019-11-26  Jakub Jelinek  <jakub@redhat.com>

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.

* g++.dg/cpp0x/gen-attrs-71.C: New test.
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/g++.dg/cpp0x/gen-attrs-71.C [new file with mode: 0644]
This page took 0.124252 seconds and 5 git commands to generate.