<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in pr47804.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>ac73cafa - Ensure TreeTransform considers ParmVarDecls as transformed Decls</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/pr47804.cpp#ac73cafa</link>
        <description>Ensure TreeTransform considers ParmVarDecls as transformed DeclsSee PR47804:TreeTransform uses TransformedLocalDecls as a map of declarations thathave been transformed already. When doing a &quot;TransformDecl&quot;, whichhappens in the cases of updating a DeclRefExpr&apos;s target, the defaultimplementation simply returns the already transformed declaration.However, this was not including ParmVarDecls. SO, any use ofTreeTransform that didn&apos;t re-implement TransformDecl would NOT properlyupdate the target of a DeclRefExpr, resulting in odd behavior.In the case of Typo-recovery, the result was that a lambda that used itsown parameter would cause an error, since it thought that theParmVarDecl referenced was a different lambda. Additionally, this causeda problem in the AST (a declrefexpr into another scope) such that afuture instantiation would cause an assertion.This patch ensures that the ParmVarDecl transforming process recordsinto TransformedLocalDecls so that the DeclRefExpr is ALSO updated.

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/pr47804.cpp</description>
        <pubDate>Mon, 12 Oct 2020 20:56:27 +0000</pubDate>
        <dc:creator>Erich Keane &lt;erich.keane@intel.com&gt;</dc:creator>
    </item>
</channel>
</rss>
