[PATCH] D125944: Template instantiation error recovery
Vassil Vassilev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 25 13:13:28 PDT 2022
v.g.vassilev added a comment.
In D125944#3544341 <https://reviews.llvm.org/D125944#3544341>, @v.g.vassilev wrote:
> @Purva-Chaudhari, can you rebase this patch, seems that it is not buildable.
>
> @rsmith, we need to do something similar in cling to handle pending template instantiations, I guess the question is if we can avoid instantiating the templates we don't need and still survive.
@rsmith, ping.
================
Comment at: clang/test/Interpreter/execute.cpp:2
+// RUN: clang-repl "template<class T> T f() { return T(); }" "auto ptu2 = f<float>(); err;" \
+// RUN: "auto ptu2 = f<float>();" "int i = 0;"
// RUN: clang-repl "int i = 10;" 'extern "C" int printf(const char*,...);' \
----------------
Can you move this test into a separate file which is dedicated for testing recovery of templates?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125944/new/
https://reviews.llvm.org/D125944
More information about the cfe-commits
mailing list