Implement P1094R2, Nested inline namespaces.
authorMarek Polacek <polacek@redhat.com>
Wed, 28 Nov 2018 21:39:42 +0000 (21:39 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 28 Nov 2018 21:39:42 +0000 (21:39 +0000)
commit3b9a9fe89faac023d85c9d3533c6e371197e204a
tree1bfdbf1020e96a1fc963ea590229baa2c1c3cad6
parentd794ab85f7b14b546701c23f357d49bbab474d39
Implement P1094R2, Nested inline namespaces.

* parser.c (cp_parser_namespace_definition): Parse the optional inline
keyword in a nested-namespace-definition.  Adjust push_namespace call.
Formatting fix.

* g++.dg/cpp2a/nested-inline-ns1.C: New test.
* g++.dg/cpp2a/nested-inline-ns2.C: New test.

From-SVN: r266592
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/nested-inline-ns1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/nested-inline-ns2.C [new file with mode: 0644]