https://github.com/sdkrystian commented:

I don't think this patch fixes the following case:
```cpp
template<typename T> 
struct A 
{
    struct B 
    {
        using X = int;

        struct C
        {
            using X = void;

            struct D;
        };
    };
};

template<typename T> 
struct A<T>::B::C::D : B
{
    X x; // error: field has incomplete type 'X' (aka 'void')
};
```
Regardless, this patch should probably this as a test.

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

Reply via email to