From fc45110844ac22ab4726cc5360ccae8c677dbaf6 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Sat, 30 Mar 2019 17:16:21 -0400 Subject: [PATCH] Reduce template argument nesting depth limit AST2TemplateTests.testTemplateArgumentNestingDepthLimit_512297() is failing in the new CI infrastructure, presumably due to having less stack space? Change-Id: I05a67cc1492fed3ffe8840e32a1bc4ce7f6b75a7 --- .../cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java index a5ae420e975..b58abf0c406 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java @@ -192,7 +192,7 @@ import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPVisitor; public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser { private static final int DEFAULT_PARM_LIST_SIZE = 4; private static final int DEFAULT_CATCH_HANDLER_LIST_SIZE = 4; - private static final int TEMPLATE_ARGUMENT_NESTING_DEPTH_LIMIT = 256; + private static final int TEMPLATE_ARGUMENT_NESTING_DEPTH_LIMIT = 192; // This is a parameter to the protected function {@link #declarator(DtorStrategy, DeclarationOptions)} // so it needs to be protected too.