Allow notes to be printed following a fatal error, then suppress any
diagnostics following those notes.
Make exceeding the template instantiation depth a fatal error.
Thanks to Daniel for pointing out the problem!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67320 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/Warnings.cpp b/Driver/Warnings.cpp
index 3a99435..18e44d7 100644
--- a/Driver/Warnings.cpp
+++ b/Driver/Warnings.cpp
@@ -170,6 +170,8 @@
diag::MAP_IGNORE);
Diags.setDiagnosticMapping(diag::err_pp_file_not_found, diag::MAP_FATAL);
+ Diags.setDiagnosticMapping(diag::err_template_recursion_depth_exceeded,
+ diag::MAP_FATAL);
Diags.setSuppressSystemWarnings(!OptWarnInSystemHeaders);
for (OptionsList::iterator it = Options.begin(), e = Options.end();