Issue 52905
Summary ICE on concept with member function call that lacks parentheses
Labels new issue
Assignees
Reporter TmLev
    MRE: https://godbolt.org/z/Kdsoz1eGP

Code for indexing:
```cpp
#include <concepts>
#include <vector>

template <class T>
concept Beginable = requires(T t) {
    { t.begin } -> std::convertible_to<typename T::iterator>;
    // ^~~  should be `t.begin()`
};

static_assert(Beginable<std::vector<int>>);
```

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to