PR9793: Treat substitution as an instantiation step for the purpose of the
-ftemplate-depth limit. There are various ways to get an infinite (or merely huge) stack of substitutions with no intervening instantiations. This is also consistent with gcc's behavior. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159907 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Sema/SemaExpr.cpp 2 additions, 0 deletionslib/Sema/SemaExpr.cpp
- lib/Sema/SemaTemplate.cpp 14 additions, 0 deletionslib/Sema/SemaTemplate.cpp
- lib/Sema/SemaTemplateInstantiate.cpp 42 additions, 49 deletionslib/Sema/SemaTemplateInstantiate.cpp
- lib/Sema/SemaTemplateInstantiateDecl.cpp 0 additions, 1 deletionlib/Sema/SemaTemplateInstantiateDecl.cpp
- test/SemaTemplate/instantiation-depth-defarg.cpp 28 additions, 0 deletionstest/SemaTemplate/instantiation-depth-defarg.cpp
- test/SemaTemplate/instantiation-depth-subst-2.cpp 9 additions, 0 deletionstest/SemaTemplate/instantiation-depth-subst-2.cpp
- test/SemaTemplate/instantiation-depth-subst.cpp 9 additions, 0 deletionstest/SemaTemplate/instantiation-depth-subst.cpp
Loading
Please register or sign in to comment