]> granicus.if.org Git - clang/commitdiff
Bump default template instantiation depth to 1024, as required by C++0x
authorDouglas Gregor <dgregor@apple.com>
Sat, 1 May 2010 16:59:21 +0000 (16:59 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 1 May 2010 16:59:21 +0000 (16:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102847 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/LangOptions.h
lib/Frontend/CompilerInvocation.cpp

index f88b0ef325e6c0535cc400c39660b90b5c1650a5..1ed86f190af330b294b1fe83a5f2d267f12be210 100644 (file)
@@ -162,7 +162,7 @@ public:
     OverflowChecking = 0;
     ObjCGCBitmapPrint = 0;
 
-    InstantiationDepth = 500;
+    InstantiationDepth = 1024;
 
     Optimize = 0;
     OptimizeSize = 0;
index 932c35e4f4eb92d098e34a848b1d46eb9cbe1b67..8ffdde2aa9b555fdb02bb69511a1c3d87922f277 100644 (file)
@@ -1236,7 +1236,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args,
   Opts.AccessControl = !Args.hasArg(OPT_fno_access_control);
   Opts.ElideConstructors = !Args.hasArg(OPT_fno_elide_constructors);
   Opts.MathErrno = Args.hasArg(OPT_fmath_errno);
-  Opts.InstantiationDepth = getLastArgIntValue(Args, OPT_ftemplate_depth, 99,
+  Opts.InstantiationDepth = getLastArgIntValue(Args, OPT_ftemplate_depth, 1024,
                                                Diags);
   Opts.NeXTRuntime = !Args.hasArg(OPT_fgnu_runtime);
   Opts.ObjCConstantStringClass = getLastArgValue(Args,