sdkrystian wrote:

@mizvekov Consider a slightly altered version of the motivating example [in the 
DR](https://cplusplus.github.io/CWG/issues/1835.html):
```cpp
template<int I> void end();

template<typename T>
bool Foo(T it0, T it1) 
{
    return it0->end < it1->end || it0->end > it1->end;
}
```
`< it1->end || it0->end >` _looks_ like a template-argument-list, but the 
alternate interpretation (`(it0->end < it1->end) || (it0->end > it1->end)`) is 
also valid and reasonable.

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

Reply via email to