[PATCH] D86130: [AST] Fix a crash on mangling a binding decl from a DeclRefExpr.

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 18 13:39:43 PDT 2020


rsmith accepted this revision.
rsmith added a comment.
This revision is now accepted and ready to land.

Here's a testcase that produces a name with external linkage:

  struct X { int i, j; };
  auto [a,b] = X{1,2};
  template<typename T> void f(decltype(a + T())) {}
  template void f<int>(int);

We should make sure that we mangle the reference to `a` as `_Z1aE` here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86130/new/

https://reviews.llvm.org/D86130



More information about the cfe-commits mailing list