aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-06-07 17:54:07 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-06-07 17:54:07 -0400
commit3ff609751050030ea83a7ff58eca5c07a3adcdfc (patch)
tree98e87e498bdd1f36569c008ebee5e40e0895652a /gcc/doc
parent783c26ae6798141f9822f52b45b24abf685c0afc (diff)
downloadgcc-3ff609751050030ea83a7ff58eca5c07a3adcdfc.zip
gcc-3ff609751050030ea83a7ff58eca5c07a3adcdfc.tar.gz
gcc-3ff609751050030ea83a7ff58eca5c07a3adcdfc.tar.bz2
re PR c++/48969 (ICE with -std=c++0x)
PR c++/48969 PR c++/44175 gcc/c-family/ * c-common.c (max_tinst_depth): Lower default to 900. gcc/cp/ * error.c (subst_to_string): New. (cp_printer): Use it for 'S'. (print_instantiation_partial_context_line): Handle subst context. * pt.c (push_tinst_level): Handle subst context. (deduction_tsubst_fntype): Don't track specific substitutions. Use push_tinst_level. From-SVN: r174772
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 5f4c66a..ab0cf0a 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -2069,7 +2069,8 @@ Set the maximum instantiation depth for template classes to @var{n}.
A limit on the template instantiation depth is needed to detect
endless recursions during template class instantiation. ANSI/ISO C++
conforming programs must not rely on a maximum depth greater than 17
-(changed to 1024 in C++0x).
+(changed to 1024 in C++0x). The default value is 900, as the compiler
+can run out of stack space before hitting 1024 in some situations.
@item -fno-threadsafe-statics
@opindex fno-threadsafe-statics