From 4afe7ad7fb6ebd521a6ebf8098e362d4d4d9d808 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 21 Jul 2009 17:03:25 -0400 Subject: [PATCH] * c-common.c (max_tinst_depth): Increase default to 1024. From-SVN: r149867 --- gcc/ChangeLog | 4 ++++ gcc/c-common.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a62d79f4caeb..670b06ccf477 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2009-07-21 Jason Merrill + + * c-common.c (max_tinst_depth): Increase default to 1024. + 2009-07-21 Uros Bizjak * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander. diff --git a/gcc/c-common.c b/gcc/c-common.c index 328e0fdae8e8..aaa64351fd4f 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -428,11 +428,11 @@ int flag_pretty_templates = 1; int warn_implicit = 1; -/* Maximum template instantiation depth. This limit is rather - arbitrary, but it exists to limit the time it takes to notice - infinite template instantiations. */ +/* Maximum template instantiation depth. This limit exists to limit the + time it takes to notice infinite template instantiations; the default + value of 1024 is likely to be in the next C++ standard. */ -int max_tinst_depth = 500; +int max_tinst_depth = 1024; -- 2.43.5