https://github.com/cor3ntin closed
https://github.com/llvm/llvm-project/pull/78356
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
cor3ntin wrote:
@MitalAshok Can we close this?
https://github.com/llvm/llvm-project/pull/78356
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -598,3 +600,27 @@ namespace B {
}
void g(B::X x) { A::f(x); }
}
+
+namespace static_operator {
+#if __cplusplus >= 201703L
frederick-vs-ja wrote:
> No way to modify things in a C++11/14 constexpr function (`++x` is not a
> constant expression), so no way
MitalAshok wrote:
This pull request changes `E(...)` to produce the same AST as
`E.operator()(...)`, which is similar to `E.f(...)` for a static member
function `f`.
But the linked #68485 changes this to CXXOperatorCallExpr, which is more
appropriate since it is used for non-member call
https://github.com/MitalAshok converted_to_draft
https://github.com/llvm/llvm-project/pull/78356
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -598,3 +600,27 @@ namespace B {
}
void g(B::X x) { A::f(x); }
}
+
+namespace static_operator {
+#if __cplusplus >= 201703L
MitalAshok wrote:
No way to modify things in a C++11/14 constexpr function (`++x` is not a
constant expression), so no way to make a
@@ -598,3 +600,27 @@ namespace B {
}
void g(B::X x) { A::f(x); }
}
+
+namespace static_operator {
+#if __cplusplus >= 201703L
frederick-vs-ja wrote:
Why C++17?
https://github.com/llvm/llvm-project/pull/78356
___
https://github.com/frederick-vs-ja edited
https://github.com/llvm/llvm-project/pull/78356
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/frederick-vs-ja commented:
It seems that more things are being done #68485. Have you double checked that
PR?
https://github.com/llvm/llvm-project/pull/78356
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://github.com/MitalAshok updated
https://github.com/llvm/llvm-project/pull/78356
>From c6d4aca37bf7ede785313135abdad986d9cd783a Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Tue, 16 Jan 2024 21:42:01 +
Subject: [PATCH] [Clang] fix static operator()/[] call not evaluating object
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Mital Ashok (MitalAshok)
Changes
Fixes #78355
---
Full diff: https://github.com/llvm/llvm-project/pull/78356.diff
2 Files Affected:
- (modified) clang/lib/Sema/SemaOverload.cpp (+13-7)
- (modified)
https://github.com/MitalAshok created
https://github.com/llvm/llvm-project/pull/78356
Fixes #78355
>From 08c7087d4b40a915f123ba3c448a6ca3233af6a1 Mon Sep 17 00:00:00 2001
From: Mital Ashok
Date: Tue, 16 Jan 2024 21:42:01 +
Subject: [PATCH] [Clang] fix static operator()/[] call not
12 matches
Mail list logo