PR c++/64235 - missing syntax error with invalid alignas.
commit4789c23be4e240285c12aecba22fdc6dfd100d11
authorMarek Polacek <polacek@redhat.com>
Fri, 21 Jun 2019 20:26:54 +0000 (21 20:26 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 21 Jun 2019 20:26:54 +0000 (21 20:26 +0000)
tree05b16bc28c81ce939db4fa93e08fff1a02cb1c55
parent9b15893c31a9fd926459123037c09b0ac64a5bd3
PR c++/64235 - missing syntax error with invalid alignas.

* parser.c (cp_parser_std_attribute_spec): Commit to tentative parse
if there's a missing close paren.

* g++.dg/parse/alignas1.C: New test.

From-SVN: r272570
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/alignas1.C [new file with mode: 0644]