[all-commits] [llvm/llvm-project] f3ce7a: [clang] fix crash with c-style casts involving dep...

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Tue Apr 28 16:31:21 PDT 2026


  Branch: refs/heads/release/22.x
  Home:   https://github.com/llvm/llvm-project
  Commit: f3ce7a7db0dca03998aa62870a88cc4fb31262a0
      https://github.com/llvm/llvm-project/commit/f3ce7a7db0dca03998aa62870a88cc4fb31262a0
  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

(cherry picked from commit c147ccadae917314a7d46510936e5c275e14fc18)



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