PR c++/83820 - excessive attribute arguments not detected.
authorMarek Polacek <polacek@redhat.com>
Mon, 17 Jun 2019 18:26:07 +0000 (18:26 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 17 Jun 2019 18:26:07 +0000 (18:26 +0000)
commitbf0af866a4f2792a91310d8b809e25ffbdd9e1f7
tree1c6bfeed0fb062867b62eece6c2d3cc9b4605b54
parent39f901e918c42935d1acf5ad87b79ae1b38a666b
PR c++/83820 - excessive attribute arguments not detected.

* parser.c (cp_parser_std_attribute): Detect excessive arguments.

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

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