Index: include/clang/Basic/DiagnosticGroups.td =================================================================== --- include/clang/Basic/DiagnosticGroups.td +++ include/clang/Basic/DiagnosticGroups.td @@ -687,7 +687,7 @@ // Aggregation warning settings. // Populate -Waddress with warnings from other groups. -def : DiagGroup<"address", [PointerBoolConversion, +def Address : DiagGroup<"address", [PointerBoolConversion, StringCompare, TautologicalPointerCompare]>; Index: include/clang/Basic/DiagnosticSemaKinds.td =================================================================== --- include/clang/Basic/DiagnosticSemaKinds.td +++ include/clang/Basic/DiagnosticSemaKinds.td @@ -6730,6 +6730,9 @@ def err_cannot_form_pointer_to_member_of_reference_type : Error< "cannot form a pointer-to-member to member %0 of reference type %1">; +def warn_taking_address_standard_library_function : Warning< + "taking the address of the standard library function '%0' is not allowed"> + , InGroup
; def err_incomplete_object_call : Error< "incomplete type in call to object of type %0">; Index: lib/Sema/SemaExpr.cpp =================================================================== --- lib/Sema/SemaExpr.cpp +++ lib/Sema/SemaExpr.cpp @@ -12048,8 +12048,11 @@ return MPTy; } } - } else if (!isa