re PR c++/89585 (GCC 8.3: asm volatile no longer accepted at file scope)
authorJakub Jelinek <jakub@redhat.com>
Fri, 8 Mar 2019 07:45:23 +0000 (08:45 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 8 Mar 2019 07:45:23 +0000 (08:45 +0100)
commit5d1504d42af6b12efeb83a2056424ceb1512961f
tree209c2c9466dd1c797803e52abe98f97ce69792b3
parented3ea9f271aecfdea1650c87f835efa70a6f1bac
re PR c++/89585 (GCC 8.3: asm volatile no longer accepted at file scope)

PR c++/89585
* parser.c (cp_parser_asm_definition): Just warn instead of error
on volatile qualifier outside of function body.

* g++.dg/asm-qual-3.C: Adjust expected diagnostics for toplevel
asm volatile.

From-SVN: r269483
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asm-qual-3.C