sdkrystian wrote:

@rupprecht looks like the issue is with non-static members in base classes:
```cpp
struct B
{
    int z;
    void h(int);
};

template<typename T> 
struct A : B
{
    int y;
    void g(int);

    template<typename U>
    void f(U); 

    template<>
    void f(int x)
    {
        x;
        y;
        z; // error: reference to overloaded function could not be resolved
        g(x);
        g(y);
        g(z);
        g(0);
        h(x); // error: call to non-static member function without an object 
argument
        h(y);
        h(z); // error: no matching function for call to 'h'
        h(0); // error: call to non-static member function without an object 
argument
    }
};

template struct A<int>; 
```
I'll look into this and see whether it's a trivial fix. If not, I'll revert.

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

Reply via email to