PR48002: Fix injection of elaborated-type-specifiers within local
authorRichard Smith <richard@metafoo.co.uk>
Wed, 28 Oct 2020 21:27:38 +0000 (14:27 -0700)
committerRichard Smith <richard@metafoo.co.uk>
Wed, 28 Oct 2020 21:29:45 +0000 (14:29 -0700)
commit09abecef7bbfda18d34f046954eaa4d491062839
tree73da3875fcfea94e109c9db960818ad06d129cf5
parent1ce7040359a92a63b7b8cda2b6635627a4428399
PR48002: Fix injection of elaborated-type-specifiers within local
classes into the enclosing block scope.

We weren't properly detecting whether the name would be injected into a
block scope in the case where it was lexically declared in a local
class.
clang/lib/Sema/SemaDecl.cpp
clang/test/CXX/basic/basic.scope/basic.scope.pdecl/p7.cpp [new file with mode: 0644]