diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-22 00:53:56 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-09-22 00:53:56 +0000 |
commit | 6d12af7410a8fec24b9522875ef8ceb385c78d56 (patch) | |
tree | 2aade1c2ad8bd1edefc181733df1786027865e38 /clang/test/SemaTemplate/instantiation-depth-subst-2.cpp | |
parent | 493dffe2b12a0f9c61d700f23541c2a53fcedafe (diff) | |
download | bcm5719-llvm-6d12af7410a8fec24b9522875ef8ceb385c78d56.tar.gz bcm5719-llvm-6d12af7410a8fec24b9522875ef8ceb385c78d56.zip |
Fix bug which sometimes resulted in further diagnostics being produced after a
fatal error. Previously, if a fatal error was followed by a diagnostic which
was suppressed due to a SFINAETrap, we'd forget that we'd seen a fatal error.
llvm-svn: 164437
Diffstat (limited to 'clang/test/SemaTemplate/instantiation-depth-subst-2.cpp')
-rw-r--r-- | clang/test/SemaTemplate/instantiation-depth-subst-2.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/test/SemaTemplate/instantiation-depth-subst-2.cpp b/clang/test/SemaTemplate/instantiation-depth-subst-2.cpp index a29d6b5a1b4..ef2a5c765d9 100644 --- a/clang/test/SemaTemplate/instantiation-depth-subst-2.cpp +++ b/clang/test/SemaTemplate/instantiation-depth-subst-2.cpp @@ -1,9 +1,6 @@ // RUN: %clang_cc1 -verify %s -ftemplate-depth 2 template<int N> struct S { }; -// FIXME: We produce the same 'instantiation depth' error here many times -// (2^(depth+1) in total), due to additional lookups performed as part of -// error recovery in DiagnoseTwoPhaseOperatorLookup. -template<typename T> S<T() + T()> operator+(T, T); // expected-error 8{{}} expected-note 10{{}} +template<typename T> S<T() + T()> operator+(T, T); // expected-error {{instantiation exceeded maximum depth}} expected-note 3{{while substituting}} S<0> s; -int k = s + s; // expected-error {{invalid operands to binary expression}} +int k = s + s; |