]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
extend.texi: Document deprecated extensions allowing static floating-point members...
authorJonathan Wakely <redi@gcc.gnu.org>
Mon, 7 Feb 2005 17:11:39 +0000 (17:11 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 7 Feb 2005 17:11:39 +0000 (17:11 +0000)
2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>

* doc/extend.texi: Document deprecated extensions allowing
static floating-point members to have initializers and allowing
floating-point literals in integral constant expressions.

From-SVN: r94706

gcc/ChangeLog
gcc/doc/extend.texi

index 91ba10b4b6f0270b1a41ecf9e37919378af407e9..92bf707c685ad6c6228f92841ba99de12c35b59e 100644 (file)
@@ -1,3 +1,9 @@
+2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
+
+       * doc/extend.texi: Document deprecated extensions allowing
+       static floating-point members to have initializers and allowing
+       floating-point literals in integral constant expressions.
+
 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
 
        * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
index eaea96e2245f1341511202e127d7c13a3aa02735..e730511c212c5f2123ef74b170ef4c2afe45c404 100644 (file)
@@ -9799,6 +9799,16 @@ The use of default arguments in function pointers, function typedefs and
 and other places where they are not permitted by the standard is
 deprecated and will be removed from a future version of G++.
 
+G++ allows floating-point literals to appear in integral constant expressions,
+e.g. @samp{ enum E @{ e = int(2.2 * 3.7) @} }
+This extension is deprecated and will be removed from a future version.
+
+G++ allows static data members of const floating-point type to be declared
+with an initializer in a class definition. The standard only allows
+initializers for static members of const integral types and const
+enumeration types so this extension has been deprecated and will be removed
+from a future version.
+
 @node Backwards Compatibility
 @section Backwards Compatibility
 @cindex Backwards Compatibility