[PATCH] D86130: [AST] Fix a crash on mangling a binding decl from a DeclRefExpr.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 19 00:04:06 PDT 2020
hokein added a comment.
In D86130#2224757 <https://reviews.llvm.org/D86130#2224757>, @rsmith wrote:
> 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.
Thanks, added.
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