[clang] [Clang] Fix a crash when incorrectly calling an explicit object member function template (PR #75913)

2023-12-19 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/75913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a crash when incorrectly calling an explicit object member function template (PR #75913)

2023-12-19 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/75913 >From ba38db9f60f8a22e2a08f866e3540527131e16fb Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 19 Dec 2023 09:53:38 +0100 Subject: [PATCH 1/3] [Clang] Fix a crash when incorrectly calling an explicit

[clang] [Clang] Fix a crash when incorrectly calling an explicit object member function template (PR #75913)

2023-12-19 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon approved this pull request. LGTM with a little NIT https://github.com/llvm/llvm-project/pull/75913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a crash when incorrectly calling an explicit object member function template (PR #75913)

2023-12-19 Thread Mariya Podchishchaeva via cfe-commits
@@ -253,7 +253,9 @@ static void diagnoseInstanceReference(Sema , SemaRef.Diag(Loc, diag::err_member_call_without_object) << Range << /*static*/ 0; else { -const auto *Callee = dyn_cast(Rep); +if (auto *Tpl = dyn_cast(Rep)) Fznamznon

[clang] [Clang] Fix a crash when incorrectly calling an explicit object member function template (PR #75913)

2023-12-19 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon edited https://github.com/llvm/llvm-project/pull/75913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix a crash when incorrectly calling an explicit object member function template (PR #75913)

2023-12-19 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/75913 >From ba38db9f60f8a22e2a08f866e3540527131e16fb Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 19 Dec 2023 09:53:38 +0100 Subject: [PATCH 1/2] [Clang] Fix a crash when incorrectly calling an explicit

[clang] [Clang] Fix a crash when incorrectly calling an explicit object member function template (PR #75913)

2023-12-19 Thread Timm Baeder via cfe-commits
@@ -253,6 +253,8 @@ static void diagnoseInstanceReference(Sema , SemaRef.Diag(Loc, diag::err_member_call_without_object) << Range << /*static*/ 0; else { +if (auto *Tpl = dyn_cast(Rep)) + Rep = Tpl->getTemplatedDecl(); const auto *Callee =

[clang] [Clang] Fix a crash when incorrectly calling an explicit object member function template (PR #75913)

2023-12-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes Fixes #75732 --- Full diff: https://github.com/llvm/llvm-project/pull/75913.diff 2 Files Affected: - (modified) clang/lib/Sema/SemaExprMember.cpp (+2) - (modified) clang/test/SemaCXX/cxx2b-deducing-this.cpp

[clang] [Clang] Fix a crash when incorrectly calling an explicit object member function template (PR #75913)

2023-12-19 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/75913 Fixes #75732 >From ba38db9f60f8a22e2a08f866e3540527131e16fb Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Tue, 19 Dec 2023 09:53:38 +0100 Subject: [PATCH] [Clang] Fix a crash when incorrectly calling an