Commit e952afba by Paolo Carlini Committed by Paolo Carlini

re PR c++/56544 (documentation for __cplusplus is out of date)

2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/56544
	* doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
	that now in C++ the value is correct per the C++ standards.

From-SVN: r200193
parent 6be8258d
2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/56544
* doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
that now in C++ the value is correct per the C++ standards.
2013-06-19 Richard Biener <rguenther@suse.de> 2013-06-19 Richard Biener <rguenther@suse.de>
* expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
......
...@@ -1926,11 +1926,11 @@ facilities of the standard C library available. ...@@ -1926,11 +1926,11 @@ facilities of the standard C library available.
This macro is defined when the C++ compiler is in use. You can use This macro is defined when the C++ compiler is in use. You can use
@code{__cplusplus} to test whether a header is compiled by a C compiler @code{__cplusplus} to test whether a header is compiled by a C compiler
or a C++ compiler. This macro is similar to @code{__STDC_VERSION__}, in or a C++ compiler. This macro is similar to @code{__STDC_VERSION__}, in
that it expands to a version number. A fully conforming implementation that it expands to a version number. Depending on the language standard
of the 1998 C++ standard will define this macro to @code{199711L}. The selected, the value of the macro is @code{199711L}, as mandated by the
GNU C++ compiler is not yet fully conforming, so it uses @code{1} 1998 C++ standard; @code{201103L}, per the 2011 C++ standard; an
instead. It is hoped to complete the implementation of standard C++ unspecified value strictly larger than @code{201103L} for the experimental
in the near future. languages enabled by @option{-std=c++1y} and @option{-std=gnu++1y}.
@item __OBJC__ @item __OBJC__
This macro is defined, with value 1, when the Objective-C compiler is in This macro is defined, with value 1, when the Objective-C compiler is in
......
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