<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55850>55850</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Assertion failed: (EC.isDependent() && "delaying non-dependent access"), function DelayDependentAccess, file SemaAccess.cpp, line 1410.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ahatanak
      </td>
    </tr>
</table>

<pre>
    The assertion fails when the following code is compiled: 

$ cat test.cpp
`
template<int Num>
class Base {
protected:
    template<typename T>
    struct S0 {
    };    
    friend class S0<int>;
};

template<int Num>
class Derived : public Base<Num> {
    friend class Base<Num>::S0<int>;
};

Derived<1> t;
`

$ clang++  -std=c++14 -c -o /dev/null test.cpp
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNUsuyoyAQ_RrcdMVCjHpduEjizXI2uT9AoKPMELQEk8rfT6t5rmYsSuD04Zxu6GOnb9VPiyC9xyGYzsFJGuvh2qKDQIFTZ213Na4B1WkE42k-98aiZukGGK8Z39z_Yg1KBgjoQ6z6_o7mfFkEPPdWBmTpzrgAv8YzS7-XkLJkD1vpEVixXbB-6AKqMNssCND3JhJuPTp5Rvh56kwMH4ZRBTjwl9QEs6Jm6XZePbHTYNBpWNwPfElsEkvvB5dD7zX-s4gaB3NBDdPl9OPRGjXXRfyF-5nVRwYfvKnqdPN_Sd09iZpMDuEVftz92wNZ6RomtjQAVj7QqVot-2QNKwWrDpjYa7zQ343WPp8z0lWqy7SUUTDBYrX56Jh7O4iv711sfI30NhopcfHFREl4ToMmodHK29RNrnMr_aCBVAq9pzixmdjBaXRq1q4n_lNuc6cRgSzhgGe5QHO_EWyNQ0jWCY-jcbBVG0Lvp6sUexqNCe14jKl_aWPt5TGtqNd-U6_R1ng_Ihnss-wr41FbYVrQqljnQqaqzArBpcpQ86TQ4oQlRlYe0fqKZXSFwuEVZompkqyOTCW4EDznKS94niRxrtNjorU6lbLMOCZszakGY-Mpj7gbmmio5pSOY-MpaI0P_hWkNjGNQ5ztSF-Ooe2GSrYySCf_RLN3Nef-F4LHJbE">