aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <redi@gcc.gnu.org>2003-04-11 03:25:13 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2003-04-11 03:25:13 +0100
commit6d9c4c8386f1d11605d1c383f68d118be6aeea18 (patch)
treed6f719e546ba4474708a1697b68ad5dd31d90ad3
parentbc9150d3354d869a668b18fa6e29ae575aaac5e8 (diff)
downloadgcc-6d9c4c8386f1d11605d1c383f68d118be6aeea18.zip
gcc-6d9c4c8386f1d11605d1c383f68d118be6aeea18.tar.gz
gcc-6d9c4c8386f1d11605d1c383f68d118be6aeea18.tar.bz2
extend.texi (Template Instantiation): Refer to ISO standard, not Working Paper.
2003-04-08 Jonathan Wakely <redi@gcc.gnu.org> * doc/extend.texi (Template Instantiation): Refer to ISO standard, not Working Paper. * doc/invoke.texi (C++ Dialect Options): Same. From-SVN: r65456
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/doc/extend.texi4
-rw-r--r--gcc/doc/invoke.texi16
3 files changed, 16 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 572d52a..b156338 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
+
+ * doc/extend.texi (Template Instantiation): Refer to ISO standard,
+ not Working Paper.
+ * doc/invoke.texi (C++ Dialect Options): Same.
+
2003-04-10 Zack Weinberg <zack@codesourcery.com>
* tree.c (tree_operand_check_failed): New function.
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 22d127f..701f5d4 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -7428,8 +7428,8 @@ compile it without @option{-fno-implicit-templates} so you get all of the
instances required by your explicit instantiations (but not by any
other files) without having to specify them as well.
-g++ has extended the template instantiation syntax outlined in the
-Working Paper to allow forward declaration of explicit instantiations
+g++ has extended the template instantiation syntax given in the ISO
+standard to allow forward declaration of explicit instantiations
(with @code{extern}), instantiation of the compiler support data for a
template class (i.e.@: the vtable) without instantiating any of its
members (with @code{inline}), and instantiation of only the static data
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 2655cd5..c016eeb 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -1281,14 +1281,14 @@ around bugs in the access control code.
@item -fcheck-new
@opindex fcheck-new
Check that the pointer returned by @code{operator new} is non-null
-before attempting to modify the storage allocated. The current Working
-Paper requires that @code{operator new} never return a null pointer, so
-this check is normally unnecessary.
-
-An alternative to using this option is to specify that your
-@code{operator new} does not throw any exceptions; if you declare it
-@samp{throw()}, G++ will check the return value. See also @samp{new
-(nothrow)}.
+before attempting to modify the storage allocated. This check is
+normally unnecessary because the C++ standard specifies that
+@code{operator new} will only return @code{0} if it is declared
+@samp{throw()}, in which case the compiler will always check the
+return value even without this option. In all other cases, when
+@code{operator new} has a non-empty exception specification, memory
+exhaustion is signalled by throwing @code{std::bad_alloc}. See also
+@samp{new (nothrow)}.
@item -fconserve-space
@opindex fconserve-space