On Wed, 25 Sep 2019 at 11:48, Peter Collingbourne via cfe-commits <
cfe-commits@lists.llvm.org> wrote:
> Hi Richard, it looks like this commit caused an assertion failure on the
> following input:
>
> $ cat test2.ii
> # 2 "" 3
> namespace a {
> enum { b };
> }
> template void c() {
> auto d = [
Hi Richard, it looks like this commit caused an assertion failure on the
following input:
$ cat test2.ii
# 2 "" 3
namespace a {
enum { b };
}
template void c() {
auto d = [](auto) {
using a::b;
b;
};
d(0);
}
void e() { c; }
$ clang test2.ii
clang: ../clang/lib/Sema/SemaTemplateInsta
Author: rsmith
Date: Mon Aug 26 18:06:21 2019
New Revision: 36
URL: http://llvm.org/viewvc/llvm-project?rev=36&view=rev
Log:
Don't lose the FoundDecl and template arguments for a DeclRefExpr in
TreeTransform.
Modified:
cfe/trunk/lib/Sema/TreeTransform.h
Modified: cfe/trunk/lib/Sema/T