[all-commits] [llvm/llvm-project] 927743: [clang] diagnose invalid member pointer class on i...
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Fri Mar 21 21:06:23 PDT 2025
Branch: refs/heads/users/mizvekov/GH132494
Home: https://github.com/llvm/llvm-project
Commit: 9277434514a4eb3cfb2addf8cbb9445a0477dadb
https://github.com/llvm/llvm-project/commit/9277434514a4eb3cfb2addf8cbb9445a0477dadb
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2025-03-22 (Sat, 22 Mar 2025)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/include/clang/Sema/Sema.h
M clang/lib/Sema/SemaType.cpp
M clang/lib/Sema/TreeTransform.h
M clang/test/SemaCXX/member-pointer.cpp
M libc/test/src/__support/CPP/type_traits_test.cpp
Log Message:
-----------
[clang] diagnose invalid member pointer class on instantiation
This moves the diagnostic for member pointers pointing into
non-class into BuildMemberPointer, so that it can be
used from RebuildMemberPointer, when instantiating templates.
Also adds a minor tweak to the diagnostic when the member pointer is anonymous,
which was previously untested.
Also reverts https://github.com/llvm/llvm-project/pull/132501, which
disabled a failing test due to the regression which is now fixed.
No changelog, since this fixes a regression which has not been released
yet.
Fixes https://github.com/llvm/llvm-project/issues/132494
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list