diff options
author | ville <ville@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-21 15:50:30 +0000 |
---|---|---|
committer | ville <ville@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-21 15:50:30 +0000 |
commit | 2d2de56994ba9c17ada91671463715b46967d22a (patch) | |
tree | a0c9ebca3ca8e137ea972254b66af70b0fc63155 /gcc/c-family/c-cppbuiltin.c | |
parent | 3cff347ab261f0be00d79ebe005ea87867044a6a (diff) | |
download | gcc-2d2de56994ba9c17ada91671463715b46967d22a.tar.gz |
/c-family
2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
Complete the implementation of N4230, Nested namespace definition.
* c-cppbuiltin.c: Add __cpp_namespace_attributes and
__cpp_nested_namespace_definitions.
/cp
2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
Complete the implementation of N4230, Nested namespace definition.
* parser.c (cp_parser_namespace_definition): Support namespace
attributes both before and after the namespace identifier.
/testsuite
2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
Complete the implementation of N4230, Nested namespace definition.
* g++.dg/cpp1y/feat-cxx11-neg.C: Add tests for C++17 namespace
attributes and nested namespace definitions.
* g++.dg/cpp1y/feat-cxx98-neg.C: Likewise.
* g++.dg/cpp1z/feat-cxx1z.C: Likewise.
* g++.dg/cpp1y/feat-cxx14-neg.C: New.
* g++.dg/cpp1z/namespace-attribs.C: Likewise.
* g++.dg/cpp1z/nested-namespace-def1.C: Add tests for attributes
appearing before the namespace identifier.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227977 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c-cppbuiltin.c')
-rw-r--r-- | gcc/c-family/c-cppbuiltin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c index 0e45a576e9b..b222a9f263b 100644 --- a/gcc/c-family/c-cppbuiltin.c +++ b/gcc/c-family/c-cppbuiltin.c @@ -870,6 +870,8 @@ c_cpp_builtins (cpp_reader *pfile) { /* Set feature test macros for C++1z. */ cpp_define (pfile, "__cpp_static_assert=201411"); + cpp_define (pfile, "__cpp_namespace_attributes=201411"); + cpp_define (pfile, "__cpp_nested_namespace_definitions=201411"); } if (flag_concepts) /* Use a value smaller than the 201507 specified in |