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
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
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
@@ -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
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
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
@@ -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 =
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
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