(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
compilable/
b20885.d
module b20885;

struct S
{
    alias P  = void*;
}

void main()
{
    alias P  = void*;
    alias PP = void**;
    PP[1] a  = null;
    if (const void** b = a[0]){} // OK
    if (const P*     b = a[0]){} // NG
    if (const S.P*   b = a[0]){} // NG
}