1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 09:45:39 +02:00

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
This commit is contained in:
Nathan Ridge 2019-03-30 17:16:21 -04:00
parent 3a95ee0655
commit fc45110844

View file

@ -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.