(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
compilable/
test22214.d
// https://issues.dlang.org/show_bug.cgi?id=22214

struct S
{
    struct T
    {
    }
}

void main() {
    const S s;
    static if (__traits(compiles, { auto t = s.T; }))
    {
        auto t = s.T;
    }
}