(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
compilable/
test18474.d
shared struct A
{
    this(this);
}

struct B
{
    A a;
}

void main()
{
    shared B b1;
    auto b2 = b1;
}