diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-25 04:46:05 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-25 04:46:05 +0000 |
commit | 88d67f341279de9752f4471f6e887c56526e18d5 (patch) | |
tree | 782f415917a00721b6726e7c568a400e4b516edd /clang/lib/Sema/Sema.cpp | |
parent | 2603a1876967aebb2a8319dfbc9f58d049ff60e7 (diff) | |
download | bcm5719-llvm-88d67f341279de9752f4471f6e887c56526e18d5.tar.gz bcm5719-llvm-88d67f341279de9752f4471f6e887c56526e18d5.zip |
Fix crash when a decltype expression in a trailing return type refers to the
function being instantiated. An error recovery codepath was recursively
performing name lookup (and triggering an unbounded stack of template
instantiations which blew out the stack before hitting the depth limit).
Patch by Wei Pan!
llvm-svn: 164586
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index bd7c8515f64..08ccfa42598 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -90,6 +90,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, CollectStats(false), ExternalSource(0), CodeCompleter(CodeCompleter), CurContext(0), OriginalLexicalContext(0), PackContext(0), MSStructPragmaOn(false), VisContext(0), + IsBuildingRecoveryCallExpr(false), ExprNeedsCleanups(false), LateTemplateParser(0), OpaqueParser(0), IdResolver(pp), StdInitializerList(0), CXXTypeInfoDecl(0), MSVCGuidDecl(0), NSNumberDecl(0), |