efriedma-quic wrote:

The standard isn't particularly clear about what counts as an "immediate 
invocation".  But I think the rule is supposed to be that a call doesn't count 
as an immediate invocation unless the callee is actually an identifier naming 
an immediate function.

Whatever gcc is doing seems hard to justify.

```
consteval int g() {return 3;}
int main() {
    auto b = (!__builtin_is_constant_evaluated() ? g : 0)();
    return b;
}
```

https://github.com/llvm/llvm-project/pull/235356
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to