sdkrystian wrote:

```cpp
template<typename T, typename U>
concept D = sizeof(T) == sizeof(U);

template<typename T>
struct A
{
    template<typename U, typename V> requires D<U, V>
    static void f();
};

template<typename T, typename U>
struct B
{
    template<typename V>
    struct C
    {
        friend void A<char>::f<T, U>();
    };
};

template struct B<int, int>::C<short>;

extern template void A<char>::f<int, int>(); // crash here
```


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

Reply via email to