diff mbox

Document value of __cplusplus for C++14

Message ID 20151003125357.GF12094@redhat.com
State New
Headers show

Commit Message

Jonathan Wakely Oct. 3, 2015, 12:53 p.m. UTC
Committed to trunk as obvious.

Should it go on gcc-5-branch too?
diff mbox

Patch

commit b06d72cb9f0b5fa3f052afaca99393658095624d
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Sat Oct 3 01:28:01 2015 +0100

    Document value of __cplusplus for C++14
    
    	* doc/cpp.texi (Standard Predefined Macros): Document value of
    	__cplusplus for C++14.

diff --git a/gcc/doc/cpp.texi b/gcc/doc/cpp.texi
index 118ba7c..7718d14 100644
--- a/gcc/doc/cpp.texi
+++ b/gcc/doc/cpp.texi
@@ -1925,10 +1925,13 @@  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
 or a C++ compiler.  This macro is similar to @code{__STDC_VERSION__}, in
 that it expands to a version number.  Depending on the language standard
-selected, the value of the macro is @code{199711L}, as mandated by the
-1998 C++ standard; @code{201103L}, per the 2011 C++ standard; an
-unspecified value strictly larger than @code{201103L} for the experimental 
-languages enabled by @option{-std=c++1y} and @option{-std=gnu++1y}.
+selected, the value of the macro is
+@code{199711L} for the 1998 C++ standard,
+@code{201103L} for the 2011 C++ standard,
+@code{201402L} for the 2014 C++ standard,
+or an unspecified value strictly larger than @code{201402L} for the
+experimental languages enabled by @option{-std=c++1z} and
+@option{-std=gnu++1z}.
 
 @item __OBJC__
 This macro is defined, with value 1, when the Objective-C compiler is in