[llvm-bugs] [Bug 37550] New: Clang can't instantiate called template function after fatal-error and KeepGoing flag

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 22 06:12:41 PDT 2018


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: unassignedclangbugs at nondot.org
          Reporter: ivan.donchevskii at qt.io
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180522/89595786/attachment.html>


More information about the llvm-bugs mailing list