aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorPranav Kant <prka@google.com>2024-04-26 00:18:08 +0000
committerPranav Kant <prka@google.com>2024-04-26 00:18:08 +0000
commit0c6e1ca1c704a3a0fb53ae54f7e3723736f477c7 (patch)
treed37068c5c994c1a90ba67d13f3a682d9dfd41331 /clang/lib/Parse/ParseDecl.cpp
parent45fc0e6b38b62a61b0ddcda2e7fe9b4fee7e3e58 (diff)
downloadllvm-0c6e1ca1c704a3a0fb53ae54f7e3723736f477c7.zip
llvm-0c6e1ca1c704a3a0fb53ae54f7e3723736f477c7.tar.gz
llvm-0c6e1ca1c704a3a0fb53ae54f7e3723736f477c7.tar.bz2
Revert "[Clang][Sema] Diagnose class member access expressions naming non-existent members of the current instantiation prior to instantiation in the absence of dependent base classes (#84050)"
This reverts commit a8fd0d029dca7d17eee72d0445223c2fe1ee7758.
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index 53a33fa..05ad5ec 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -2998,7 +2998,7 @@ bool Parser::ParseImplicitInt(DeclSpec &DS, CXXScopeSpec *SS,
<< TokenName << TagName << getLangOpts().CPlusPlus
<< FixItHint::CreateInsertion(Tok.getLocation(), FixitTagName);
- if (Actions.LookupName(R, getCurScope())) {
+ if (Actions.LookupParsedName(R, getCurScope(), SS)) {
for (LookupResult::iterator I = R.begin(), IEnd = R.end();
I != IEnd; ++I)
Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)