https://bugs.llvm.org/show_bug.cgi?id=37550
Bug ID: 37550
Summary: Clang can't instantiate called template function after
fatal-error and KeepGoing flag
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
I'm using CXTranslationUnit_KeepGoing in libclang which is the same as calling
setSuppressAfterFatalError(false) for DiagnosticsEngine.
Here's the code to reproduce.
Code:
void foo() {} // I can't reproduce unless there's a function before include
#include <none> // non-existing inlude causing fatal error
template<class Type>
void TemplateFunctionCall(Type type)
{
}
void bar()
{
TemplateFunctionCall(1); // This line gives an error
}
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs