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

    <tr>
        <th>Summary</th>
        <td>
            [Clang][diagnostics] Missing error when base class type declaration shadows template parameter
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    godbolt: https://godbolt.org/z/eW8ET71hK

```
template<class>
class Base;

template<class T>
class A : public Base<T> {
    using typename Base<T>::T;
};
```

The behavior is different with gcc.

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxcUsGOmzAQ_ZrhMtrI2BCTAweSLJeqvTRSz7aZgCuDkW0Sbb--gqVqtNJIHsnv2W_eGxWj7SeiGsozlNdMLWnwof5Bz5-2H1WmffdR977T3iUQDQ4pzRFEA7wF3u4XBx964O0f4C39qt5vMh--AWvWOrK9WJNonJ1KBOJinIoRxDuwZmvxrCKBOH-SvgLx9gptcNUxL9pZs_MuKwBBrnxExCXaqcf0MdOkRnoFrcpFc9u_kte9eVEJrLkNhJoG9bA-oI3Y2fudAk0JnzYN2BtzANZkXS26kzipjOpcFqyqxLGS2VCL_MhI3otCy1KIojqehBHyrkiy_K65yWzNGS-ZYJzxomLyUOWaCqakZkfGK1lAwWhU1h2ce4yruZmNcaE656cizzOnNLm4Jca5cWrqgfM1vFCvhDe99BEK5mxM8f8TySa3xXzZGOUVynNnVT_5mKyJUF7xu42bcxSCD_gcaEKtIuGn8auf2JFxKqhk_YRxUJ1_RvyXF84qqJEShWwJrv6yKjYNiz4YPwJvV1H78TYH_5tMAt5uQ0bg7T7no-Z_AwAA___OJ88o">