From 61b7f5e3fd999819c1e375d98c198e8cdd1c49c3 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 27 Jan 2011 21:06:28 +0000 Subject: Separate the access-control diagnostics from other diagnostics that do not have SFINAE behavior. llvm-svn: 124441 --- clang/lib/Sema/Sema.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/Sema/Sema.cpp') diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 60cfd47e0f0..e37f6175496 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -452,10 +452,12 @@ Sema::SemaDiagnosticBuilder::~SemaDiagnosticBuilder() { if (TemplateDeductionInfo *Info = SemaRef.isSFINAEContext()) { switch (DiagnosticIDs::getDiagnosticSFINAEResponse(getDiagID())) { + case DiagnosticIDs::SFINAE_AccessControl: case DiagnosticIDs::SFINAE_Report: // Fall through; we'll report the diagnostic below. break; + case DiagnosticIDs::SFINAE_SubstitutionFailure: // Count this failure so that we know that template argument deduction // has failed. -- cgit v1.2.3