TabbySqui wrote:

Hello again,
For this approach is afraid the whole AST should be checked. It seems a bit 
overwhelming.

I mean the complicated cases may still fail.
```c++
template<typename R >
constexpr int get(){
return sizeof(R);
}

template<int N = 0>
int thefunc (int g) __attribute__((enable_if(get<decltype([](){})>(), ""))) {
  return 0;
}

int main() {
    return thefunc(0);
}
```

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

Reply via email to