| Issue |
86769
|
| Summary |
clang frontend crashes on LLVM-18
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
yujincheng08
|
Example code:
```c++
#include <type_traits>
class X {};
template <typename T>
concept XPtr = std::is_base_of_v<std::remove_pointer_t<X>, std::remove_pointer_t<T>>;
template <XPtr T>
class Y {
public:
Y(T y) { }
template <XPtr U>
friend class Y;
};
template class Y<X*>;
int main() {
Y y((X*) nullptr);
}
```
Online demo: https://godbolt.org/z/PcboKh3eP
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs