Implement nested namespace definitions.
authorVille Voutilainen <ville.voutilainen@gmail.com>
Sat, 19 Sep 2015 04:44:01 +0000 (07:44 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Sat, 19 Sep 2015 04:44:01 +0000 (07:44 +0300)
commit15eefe57380a7c5fe749bf8241828c6ec39d0e21
treedb1daefebcd5b20b84cf4046bcb5f43800753de4
parent8e33db8fc08900f77200506f2cdf5c50e2fbfcba
Implement nested namespace definitions.

/cp
2015-09-18  Ville Voutilainen  <ville.voutilainen@gmail.com>

Implement nested namespace definitions.
* parser.c (cp_parser_namespace_definition): Grok nested namespace
definitions.

/testsuite
2015-09-18  Ville Voutilainen  <ville.voutilainen@gmail.com>

Implement nested namespace definitions.
* g++.dg/cpp1z/nested-namespace-def1.C: New.
* g++.dg/cpp1z/nested-namespace-def2.C: Likewise.
* g++.dg/cpp1z/nested-namespace-def3.C: Likewise.
* g++.dg/lookup/name-clash5.C: Adjust.
* g++.dg/lookup/name-clash6.C: Likewise.

From-SVN: r227932
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/nested-namespace-def1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/nested-namespace-def2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/nested-namespace-def3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lookup/name-clash5.C
gcc/testsuite/g++.dg/lookup/name-clash6.C