@@ -1281,31 +1281,6 @@ bool Sema::CppLookupName(LookupResult &R, Scope *S) {
12811281 if (DeclContext *DC = PreS->getEntity ())
12821282 DeclareImplicitMemberFunctionsWithName (*this , Name, R.getNameLoc (), DC);
12831283 }
1284- // C++23 [temp.dep.general]p2:
1285- // The component name of an unqualified-id is dependent if
1286- // - it is a conversion-function-id whose conversion-type-id
1287- // is dependent, or
1288- // - it is operator= and the current class is a templated entity, or
1289- // - the unqualified-id is the postfix-expression in a dependent call.
1290- if (Name.getNameKind () == DeclarationName::CXXConversionFunctionName &&
1291- Name.getCXXNameType ()->isDependentType ()) {
1292- R.setNotFoundInCurrentInstantiation ();
1293- return false ;
1294- }
1295-
1296- // If this is the name of an implicitly-declared special member function,
1297- // go through the scope stack to implicitly declare
1298- if (isImplicitlyDeclaredMemberFunctionName (Name)) {
1299- for (Scope *PreS = S; PreS; PreS = PreS->getParent ())
1300- if (DeclContext *DC = PreS->getEntity ()) {
1301- if (DC->isDependentContext () && isa<CXXRecordDecl>(DC) &&
1302- Name.getCXXOverloadedOperator () == OO_Equal) {
1303- R.setNotFoundInCurrentInstantiation ();
1304- return false ;
1305- }
1306- DeclareImplicitMemberFunctionsWithName (*this , Name, R.getNameLoc (), DC);
1307- }
1308- }
13091284
13101285 // C++23 [temp.dep.general]p2:
13111286 // The component name of an unqualified-id is dependent if
0 commit comments