AaronBallman wrote:

If I'm following along correctly, both of those `static_assert`s should be 
accepted from your first example because `decltype` is an unevaluated context 
and the fix would be to change:
```
if (isa<ParenExpr>(OrigOp.get())) {
```
to instead be:
```
if (isa<ParenExpr>(OrigOp.get()) && !SemaRef.isUnevaluatedContext()) {
```
? Or is there a deeper issue here and I'm not seeing it?

https://github.com/llvm/llvm-project/pull/89713
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to