Commit 2bc78e3c by Jason Merrill Committed by Jason Merrill

c-cppbuiltin.c (c_cpp_builtins): Update __cpp_inheriting_constructors.

	* c-cppbuiltin.c (c_cpp_builtins): Update
	__cpp_inheriting_constructors.

From-SVN: r241766
parent 31f7f784
2016-11-01 Jason Merrill <jason@redhat.com> 2016-11-01 Jason Merrill <jason@redhat.com>
* c-cppbuiltin.c (c_cpp_builtins): Update
__cpp_inheriting_constructors.
* c.opt (-fnew-inheriting-ctors): New. * c.opt (-fnew-inheriting-ctors): New.
* c-opts.c: Default to on for ABI 11+. * c-opts.c: Default to on for ABI 11+.
......
...@@ -904,7 +904,10 @@ c_cpp_builtins (cpp_reader *pfile) ...@@ -904,7 +904,10 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define (pfile, "__cpp_initializer_lists=200806"); cpp_define (pfile, "__cpp_initializer_lists=200806");
cpp_define (pfile, "__cpp_delegating_constructors=200604"); cpp_define (pfile, "__cpp_delegating_constructors=200604");
cpp_define (pfile, "__cpp_nsdmi=200809"); cpp_define (pfile, "__cpp_nsdmi=200809");
cpp_define (pfile, "__cpp_inheriting_constructors=200802"); if (!flag_new_inheriting_ctors)
cpp_define (pfile, "__cpp_inheriting_constructors=200802");
else
cpp_define (pfile, "__cpp_inheriting_constructors=201606");
cpp_define (pfile, "__cpp_ref_qualifiers=200710"); cpp_define (pfile, "__cpp_ref_qualifiers=200710");
cpp_define (pfile, "__cpp_alias_templates=200704"); cpp_define (pfile, "__cpp_alias_templates=200704");
} }
......
...@@ -109,8 +109,8 @@ ...@@ -109,8 +109,8 @@
#ifndef __cpp_inheriting_constructors #ifndef __cpp_inheriting_constructors
# error "__cpp_inheriting_constructors" # error "__cpp_inheriting_constructors"
#elif __cpp_inheriting_constructors!= 200802 #elif __cpp_inheriting_constructors!= 201606
# error "__cpp_inheriting_constructors != 200802" # error "__cpp_inheriting_constructors != 201606"
#endif #endif
#ifndef __cpp_ref_qualifiers #ifndef __cpp_ref_qualifiers
......
...@@ -102,8 +102,8 @@ ...@@ -102,8 +102,8 @@
#ifndef __cpp_inheriting_constructors #ifndef __cpp_inheriting_constructors
# error "__cpp_inheriting_constructors" # error "__cpp_inheriting_constructors"
#elif __cpp_inheriting_constructors!= 200802 #elif __cpp_inheriting_constructors!= 201606
# error "__cpp_inheriting_constructors != 200802" # error "__cpp_inheriting_constructors != 201606"
#endif #endif
#ifndef __cpp_ref_qualifiers #ifndef __cpp_ref_qualifiers
......
...@@ -90,8 +90,8 @@ ...@@ -90,8 +90,8 @@
#ifndef __cpp_inheriting_constructors #ifndef __cpp_inheriting_constructors
# error "__cpp_inheriting_constructors" # error "__cpp_inheriting_constructors"
#elif __cpp_inheriting_constructors!= 200802 #elif __cpp_inheriting_constructors!= 201606
# error "__cpp_inheriting_constructors != 200802" # error "__cpp_inheriting_constructors != 201606"
#endif #endif
#ifndef __cpp_ref_qualifiers #ifndef __cpp_ref_qualifiers
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment