Re: r369999 - Don't lose the FoundDecl and template arguments for a DeclRefExpr in

2019-09-26 Thread Richard Smith via cfe-commits
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 = [

Re: r369999 - Don't lose the FoundDecl and template arguments for a DeclRefExpr in

2019-09-25 Thread Peter Collingbourne via cfe-commits
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

r369999 - Don't lose the FoundDecl and template arguments for a DeclRefExpr in

2019-08-26 Thread Richard Smith via cfe-commits
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