================
@@ -12,7 +12,7 @@
// CHECK: | |-value: AddrLabelDiff &&l2 - &&l1
int Test(void) {
- constexpr char ar = &&l2 - &&l1;
+ constexpr long long ar = &&l2 - &&l1;
----------------
efriedma-quic wrote:
Checking for global variables is currently a bit loose in C
(isConstantInitializer) because constant evaluation can't actually handle all
the necessary constucts. From clang/lib/CodeGen/CGExprConstant.cpp:
```
// Constant folding is currently missing support for a few features supported
// here: CK_ToUnion, CK_ReinterpretMemberPointer, and DesignatedInitUpdateExpr.
```
It's been on my list for a while, but I've never really prioritized it.
https://github.com/llvm/llvm-project/pull/171437
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits