[all-commits] [llvm/llvm-project] c147cc: [clang] fix crash with c-style casts involving dep...
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Tue Apr 28 13:32:32 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c147ccadae917314a7d46510936e5c275e14fc18
https://github.com/llvm/llvm-project/commit/c147ccadae917314a7d46510936e5c275e14fc18
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2026-04-28 (Tue, 28 Apr 2026)
Changed paths:
M clang/lib/AST/ASTContext.cpp
M clang/test/SemaCXX/member-pointer.cpp
Log Message:
-----------
[clang] fix crash with c-style casts involving dependent member-pointer types (#194696)
A dependent member-pointer type doesn't necessarily have a class
declaration.
This simplifies the check performed in a helper for diagnosing a cast
which removes qualifiers, so it doesn't rely on this assumption.
This fixes a regression introduced in
https://github.com/llvm/llvm-project/pull/132401, which landed in the
last release, and this will be back ported, so no release notes.
Fixes #194524
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