HomePhabricator

[Concepts] Fix incorrect DeclContext for transformed RequiresExprBodyDecl

Authored by saar.raz on Mar 10 2020, 2:17 PM.

Description

[Concepts] Fix incorrect DeclContext for transformed RequiresExprBodyDecl

We would assign the incorrect DeclContext when transforming the RequiresExprBodyDecl, causing incorrect
handling of 'this' inside RequiresExprBodyDecls (bug #45162).

Assign the current context as the DeclContext of the transformed decl.

(cherry picked from commit 9769e1ee9acc33638449b50ac394b5ee2d4efb60)