diff options
author | Jonathan Wakely <redi@gcc.gnu.org> | 2005-02-07 17:11:39 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2005-02-07 17:11:39 +0000 |
commit | 6871294ad8aec8dc78361be120c6a4b5ddcef69f (patch) | |
tree | c051d6c282afbf0ee79e3c64edcccc84c48d1f76 | |
parent | 459281be3118c1109b5ab6a37743e0e90bf4bcbb (diff) | |
download | gcc-6871294ad8aec8dc78361be120c6a4b5ddcef69f.zip gcc-6871294ad8aec8dc78361be120c6a4b5ddcef69f.tar.gz gcc-6871294ad8aec8dc78361be120c6a4b5ddcef69f.tar.bz2 |
extend.texi: Document deprecated extensions allowing static floating-point members to have...
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
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 91ba10b..92bf707 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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, diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index eaea96e..e730511 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -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 |